Jump to content


  • 0
Muug

USMT - how to include some files in a folder

Question

Hi,

since about two months we're having fun here trying out MDT 2012 and USMT5. :D The idea is implementing LTI. Now, I have this Windows 7 testpc here and I'm doing a User Data Capture. This pc contains a folder - c:\Notes - which contains some subfolders and lots of files. Within this c:\Notes there are four files I want to keep, the rest is of no interest. On the internet I can find quite a lot of info about how to include a folder and to exclude some files within, but alas I don't find anything about the other way around : include files situated in a (sub)folder and deleting the rest.

 

I tried this MigNotes.xml but it didn't work. The complete c:\notes was copied. I tried the unconditionalexclude too, but that was even more dominant, the complete c:\notes was excluded. :wacko: Using more than one component seems to be a no go too, because each component is evaluated individually. And the order of the rules within a component is of no importance too.... So, in a way, this xml shows me what I want to achieve but we don't know what syntax to use. It would be nice if some of you out there could assist us.

 

Thanks in advance,

Paul

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- MigNotes.xml -->
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/mignotes">

<component type="Documents" context="System">
<displayName>Notes Configuration Files Migration</displayName>
<role role="Data">
<rules>
<include>
<objectSet>
<pattern type="File">C:\Notes\Data\ [bookmark.nsf]</pattern>
<pattern type="File">C:\Notes\Data\ [names.nsf]</pattern>
<pattern type="File">C:\Notes\Data\ [*.id]</pattern>
<pattern type="File">C:\Notes\ [notes.ini]</pattern>
</objectSet>
</include>
<Exclude>
<objectSet>
<pattern type="File">C:\Notes\* [*]</pattern>
</objectSet>
</Exclude>
</rules>
</role>
</component>
</migration>

 

Edited by Muug

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.