After you install Win2K Pro on the target system, you log on as the user and use LoadState to restore the user state from the intermediate store. The LoadState command uses the following syntax:
loadstate <MigrationPath> [/i <InfFile> [/i <InfFile>
[...]]] [/l
<LogFile>] [/v <number value>] [/f] [/u] [/x]
For the ScanState command, MigrationPath specifies the path to the user-state information on the intermediate store. Create the specified folder on the intermediate store before you use ScanState; USMT won't create the folder. For the LoadState command, MigrationPath specifies the path to the location on the target computer to which USMT will write the user-state information. This variable is user specific for both commands.
You use /i InfFile in ScanState and LoadState to specify an .inf file that contains the rules that define what user-state information to migrate. You can specify more than one .inf file on the command line, but you must precede each filename with the /i switch. If an .inf file isn't in the same directory as the executable associated with the issued command (i.e., scanstate.exe or loadstate.exe), you must provide the full path to the .inf file. If the file is in the same directory, use .\ before the .inf filename (e.g., scanstate /i .\usermig.inf). Table 1, page 113, defines both commands' optional switches and related variables.
Customization
Although USMT migrates an impressive array of configuration settings by default, you might want to customize the tool to further enhance its value. To do so, you can modify the following USMT .inf files:
- Applet.infUSMT uses applet.inf with the ScanState command. Applet.inf contains information that the tool uses to migrate a default set of applet settings for users. Modify this file when users have additional or customized applets for which you want to migrate the settings and associated files.
- Files.infUSMT uses files.inf with the ScanState command. Files.inf contains the information for migrating word processor, spreadsheet, and presentation documents to a user's \%csdidl_personal% folder (i.e., My Documents folder). The file also contains the information for migrating a user's desktop settings and My Documents and Favorites folders. You can customize this file if you want to include additional file types or folders in the migration.
- Office.infUSMT includes office.inf as an example of the type of information to include in an .inf file to migrate an application's settings. However, office.inf's use isn't limited to Microsoft Office settingsyou can copy, customize, and rename office.inf and use it as a starting point for migrating applications' settings. Before you can use a customized office.inf file with the ScanState command, you might need to add rule sets with the locations of settings and files specific to your applications and environment.
Don't modify the USMT sysfiles.inf and usermig.inf files; these files don't support customization. For more information about customizing USMT's .inf files, see the "Migration Rule File Syntax" section of the Win2K resource kit's Tools documentation Help file (w2rktool.chm) in the resource kit's main installation folder. Also, check out the USMT documentation file (usmt_d.htm) in the \usmt subfolder of the resource kit's main installation folder.
Smooth Migrations
The functionality that USMT provides has previously been available only through expensive third-party tools or custom scripting. If you need to migrate user-state information, I highly recommend you check out this handy tool.
For more information about user-state migration concerns, I recommend reading the "User State Migration" chapter of the resource kit's Change and Configuration Management Deployment Guide (a supplement to the Windows 2000 Server Resource Kit Deployment Planning Guide). This supplement is available online at http://www.microsoft.com/windows2000/techinfo/reskit/deploy/ccm/default.asp.