Datasheet

16
Chapter 1
Planning for the Installation of Windows 7
/lac:P@ssw0rd
specifies that local accounts should be created if they don’t already
exist. If the
/lac switch is not used, local accounts will not be migrated. The same
password will be used for all migrated accounts, and if a password is not specified,
the password will be empty. You should use caution if using the password in a batch
file because it will be stored in clear text, and anyone with access to the batch file can
read the password.
/lae
specifies that local accounts should be enabled. The /lac switch must be used to
migrate the accounts. When it is used, all migrated accounts will be enabled.
/
i:MigApp.xmlspecifies that the MigApp.xml file (which is included in the USMT folder)
will be used to identify application settings to migrate.
/i:MigDocs.xml
specifies that the MigDocs.xml file (which is included in the USMT
folder) will be used to identify document types to migrate.
/sf
restores shell folder redirection if a user had previously used folder redirection on
any of their user folders. For example, a user may have redirected the My Documents
folder to be stored on a server share or on a different partition.
/hardlink
is used for in-place migrations to retrieve the data from the Windows.old
folder. It requires the use of the
/nocompress switch.
/nocompress
specifies that data is not compressed.
More details on both the ScanState and LoadState commands, includ-
ing a full listing of all the switches, are included in the
USMT.chm help file
included with the Windows AIK. You can access this help file in the
C:\
Program Files\Windows AIK\Docs\CHMs\
folder.
Exercise 1.3 will lead you through the process of creating a batch file and running it to
migrate user data for in-place migrations. This assumes that the computer was running
Windows XP, Windows Vista, or Windows 7 and that a clean installation of Windows 7
was then performed on the system. Data from the previous installation is stored in the
Windows.old folder of the C: drive. Last, the Windows AIK for Windows 7 is also assumed
to have been installed on this system.
EXERCISE 1.3
Running USMT in a Batch File
1. Launch Windows Explorer, and browse to the C: drive. Create a folder called MyUSMT.
2. Right-click within the folder, and select New Text Document. Press Enter to open
the text document.
597095c01.indd 16 6/2/10 4:12:57 PM