Need help with USMT rule precedence

G

Guest

Hi,

I want to use usmt to backup users HDD's prior to migration. Unfortunately,
I don't know where the users have stored their data on the C: drive, it could
be anywhere.

The easiest way I have of determining users data is to exclude everything
that is included on the SOE + known common applications and backup everything
else.

How would I go about this ?. The copyfiles rule always takes precedence
over the delfiles rule, so I have tried the following custom inf file:

[version]
Signature=$Windows NT$
DriverVer=10/01/2002,5.2.3790.1265

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\All Users\Application Data\Microsoft\Network\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*

On the scanstate command line, I have included the above .inf and
sysfiles.inf with /f. Unfortunately the command "*, c:\restore" tries to
copy files like ntuser.dat and causes scanstate to bomb out (I would have
thought including sysfiles.inf would prevent this?).

I cannot include known file extensions in the copyfiles command as there are
over 500 apps being used, and cannot include specific folders as I dont know
where they are.

The doco suggests that sysfiles.inf can be used to increase precedence of
exclusions, but doesn't describe how to make the modification. I have looked
in the folder and it looks like you need to sypply CRC values for files.
Should I add the folders I want to exclude in sysfiles.inf, if so, how ?.

Maybe I have gotten this all wrong :).
Any help would be appreciated.

Thanks.
Bob.
 
G

Guest

Sometimes it helps to enforce strict policies and proceedures.

Why don't you advise all users that their systems will be upgraded in the
near future and that they have nn days in order to ensure that all their
unique files and data have been moved into the C:\My Documents folder on
their PC or a specific directory on a network drive.

Further, advise them that they have this absolute responsibility and any
files not moved could possibly be lost FOREVER.

Then you can manage a simple USMT command.
 
J

Johan Arwidmark

Hi Bob,

Copyfiles has higher precedence than delfiles, but that is only
evaluated when you have two rules that are equally specific about a
file.

If the rule is the same but rerooting target is different the outcome
is based on the order of which the rules are encountered.

In order to achieve what you are trying to do you need to change
DIR=C:\Documents and Settings\All Users\Application
Data\Microsoft\Network\* to DIR=C:\Documents and Settings\* and have
other rules to migrate data from the documents and settings folder.

Try using the below inf-file together with sysfiles.inf

[version]
Signature=$Windows NT$

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*


regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net





Hi,

I want to use usmt to backup users HDD's prior to migration. Unfortunately,
I don't know where the users have stored their data on the C: drive, it could
be anywhere.

The easiest way I have of determining users data is to exclude everything
that is included on the SOE + known common applications and backup everything
else.

How would I go about this ?. The copyfiles rule always takes precedence
over the delfiles rule, so I have tried the following custom inf file:

[version]
Signature=$Windows NT$
DriverVer=10/01/2002,5.2.3790.1265

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\All Users\Application Data\Microsoft\Network\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*

On the scanstate command line, I have included the above .inf and
sysfiles.inf with /f. Unfortunately the command "*, c:\restore" tries to
copy files like ntuser.dat and causes scanstate to bomb out (I would have
thought including sysfiles.inf would prevent this?).

I cannot include known file extensions in the copyfiles command as there are
over 500 apps being used, and cannot include specific folders as I dont know
where they are.

The doco suggests that sysfiles.inf can be used to increase precedence of
exclusions, but doesn't describe how to make the modification. I have looked
in the folder and it looks like you need to sypply CRC values for files.
Should I add the folders I want to exclude in sysfiles.inf, if so, how ?.

Maybe I have gotten this all wrong :).
Any help would be appreciated.

Thanks.
Bob.
 
G

Guest

Hi Johan,

Thanks for the reply. Once migrated, the new machines will be locked down,
so all data in the future will be in one spot, but for the moment, it's a bit
of a challenge.

I am now halfway there, but am having trouble with combining a global copy
with wildcard copies and directory/file exclusions.

This is what I want to do:
* Backup the users entire HDD except excluded folders and re-root these to
c:\restore (ie any folder not excluded, the files and whole directory
structure is preserved and re-rooted to c:\restore)

* Scan the excluded folders from above for specific file types and reroot
the found files into c:\restore and keep their existing directory structure.

This appears to be very difficult to do, and even if I run 2 separate
scanstates, when restored, the c:\restore folder gets overwritten with the
last scanstate I did, instead of merging the results. Can a global
copy/exclusion be combined with a wildcard copy/exclusion ?

Thanks.
Bob.

Johan Arwidmark said:
Hi Bob,

Copyfiles has higher precedence than delfiles, but that is only
evaluated when you have two rules that are equally specific about a
file.

If the rule is the same but rerooting target is different the outcome
is based on the order of which the rules are encountered.

In order to achieve what you are trying to do you need to change
DIR=C:\Documents and Settings\All Users\Application
Data\Microsoft\Network\* to DIR=C:\Documents and Settings\* and have
other rules to migrate data from the documents and settings folder.

Try using the below inf-file together with sysfiles.inf

[version]
Signature=$Windows NT$

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*


regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net





Hi,

I want to use usmt to backup users HDD's prior to migration. Unfortunately,
I don't know where the users have stored their data on the C: drive, it could
be anywhere.

The easiest way I have of determining users data is to exclude everything
that is included on the SOE + known common applications and backup everything
else.

How would I go about this ?. The copyfiles rule always takes precedence
over the delfiles rule, so I have tried the following custom inf file:

[version]
Signature=$Windows NT$
DriverVer=10/01/2002,5.2.3790.1265

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\All Users\Application Data\Microsoft\Network\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*

On the scanstate command line, I have included the above .inf and
sysfiles.inf with /f. Unfortunately the command "*, c:\restore" tries to
copy files like ntuser.dat and causes scanstate to bomb out (I would have
thought including sysfiles.inf would prevent this?).

I cannot include known file extensions in the copyfiles command as there are
over 500 apps being used, and cannot include specific folders as I dont know
where they are.

The doco suggests that sysfiles.inf can be used to increase precedence of
exclusions, but doesn't describe how to make the modification. I have looked
in the folder and it looks like you need to sypply CRC values for files.
Should I add the folders I want to exclude in sysfiles.inf, if so, how ?.

Maybe I have gotten this all wrong :).
Any help would be appreciated.

Thanks.
Bob.
 
J

Johan Arwidmark

The data from different scans will not merge in the store but if you
specify a different store for each scanstate they will merge when
restored to the same client (loadstate).

For what I tested you can use a global copy/exclusion combined with a
wildcard copy/exclusion.

I tested this by putting some excel and word docs in the c:\drivers
folder and then used the below template. It was only the word docs
that was migrated to the c:\restore\drivers folder

[version]
Signature=$Windows NT$

[Copy This State]
copyfiles=Default CopyFiles
DelFiles=Omit Files And Folders

[Default CopyFiles]
C:\Drivers\*.doc, c:\restore
*, c:\restore

[Omit Files And Folders]
DIR=C:\Documents and Settings\*
DIR=C:\Drivers\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\WINDOWS\*
DIR=C:\USMT\*

regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net



Hi Johan,

Thanks for the reply. Once migrated, the new machines will be locked down,
so all data in the future will be in one spot, but for the moment, it's a bit
of a challenge.

I am now halfway there, but am having trouble with combining a global copy
with wildcard copies and directory/file exclusions.

This is what I want to do:
* Backup the users entire HDD except excluded folders and re-root these to
c:\restore (ie any folder not excluded, the files and whole directory
structure is preserved and re-rooted to c:\restore)

* Scan the excluded folders from above for specific file types and reroot
the found files into c:\restore and keep their existing directory structure.

This appears to be very difficult to do, and even if I run 2 separate
scanstates, when restored, the c:\restore folder gets overwritten with the
last scanstate I did, instead of merging the results. Can a global
copy/exclusion be combined with a wildcard copy/exclusion ?

Thanks.
Bob.

Johan Arwidmark said:
Hi Bob,

Copyfiles has higher precedence than delfiles, but that is only
evaluated when you have two rules that are equally specific about a
file.

If the rule is the same but rerooting target is different the outcome
is based on the order of which the rules are encountered.

In order to achieve what you are trying to do you need to change
DIR=C:\Documents and Settings\All Users\Application
Data\Microsoft\Network\* to DIR=C:\Documents and Settings\* and have
other rules to migrate data from the documents and settings folder.

Try using the below inf-file together with sysfiles.inf

[version]
Signature=$Windows NT$

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*


regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net





Hi,

I want to use usmt to backup users HDD's prior to migration. Unfortunately,
I don't know where the users have stored their data on the C: drive, it could
be anywhere.

The easiest way I have of determining users data is to exclude everything
that is included on the SOE + known common applications and backup everything
else.

How would I go about this ?. The copyfiles rule always takes precedence
over the delfiles rule, so I have tried the following custom inf file:

[version]
Signature=$Windows NT$
DriverVer=10/01/2002,5.2.3790.1265

[Copy This State]
DelFiles=Omit Files And Folders
copyfiles=Default CopyFiles

[Default CopyFiles]
*, c:\restore

[Omit Files And Folders]
; standard SOE root folders
DIR=C:\Documents and Settings\All Users\Application Data\Microsoft\Network\*
DIR=C:\Drivers\*
DIR=C:\Lotus\*
DIR=C:\Program Files\*
DIR=C:\Recycler\*
DIR=C:\Temp\*
DIR=C:\WINNT\*

On the scanstate command line, I have included the above .inf and
sysfiles.inf with /f. Unfortunately the command "*, c:\restore" tries to
copy files like ntuser.dat and causes scanstate to bomb out (I would have
thought including sysfiles.inf would prevent this?).

I cannot include known file extensions in the copyfiles command as there are
over 500 apps being used, and cannot include specific folders as I dont know
where they are.

The doco suggests that sysfiles.inf can be used to increase precedence of
exclusions, but doesn't describe how to make the modification. I have looked
in the folder and it looks like you need to sypply CRC values for files.
Should I add the folders I want to exclude in sysfiles.inf, if so, how ?.

Maybe I have gotten this all wrong :).
Any help would be appreciated.

Thanks.
Bob.
 
J

jorgec

I have a related question regarding USMT and INF file rules that you can
hopefully help with.

Our source machines have two hard drives, C and D but the target
machines only have one, a C drive. What I'd like to do is re-root
files found on the source machine's D drives onto the target machine's
C drive. I have tried rules such as:

DIR=D:\*\*.*, C:\
and
D:\*\*.*, C:\

Neither seem to work. Has anyone had any luck with this type of
operation?

Thank you,

Jorge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top