Subscribe to Windows IT Pro
September 17, 2001 12:00 AM

The Invaluable USMT

Windows IT Pro
InstantDoc ID #22242
Rating: (6)

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.inf—USMT 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.inf—USMT 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.inf—USMT 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 settings—you 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.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Jul 14, 2005

    Ive been trying to get this thing working for a month now going from a Win2k machine to a new Win2k machine.. For some reason, it has NEVER applied my migrated users permissions on ANYTHING. I can migrate and load the users profile just fine to the new machine, but when I login, the users account folders get the same permissions as any old folder you just created on your desktop does.. Acrobat cant write its registry settings, our calendar app cant create its folder in Application Data, etc.. What gives? Does this tool actually work or what?

  • Anonymous User
    7 years ago
    Mar 15, 2005

    are you able to migrate application data from other apps besides the default ones

  • Anonymous User
    7 years ago
    Feb 08, 2005

    What kind of problems are you having, I am successfully migrating users of my dept

  • Anonymous User
    7 years ago
    Feb 07, 2005

    Its a good article read, although the loadstate code absolutly confused the crap out of me, I spent 2 hours and still couldn't get it workign. USMT promisses everything, but when it comes to being user friendly, delievers nothing. I have made an Image of all my files but cannot load them.
    If you have any sugestions I ll be more then happy to hear them.
    Thank you

  • Anonymous User
    8 years ago
    Dec 16, 2004

    To selctively migrate applications to your new PC use Alohabob PC Relocator. Check out http://www.eisenworld.com/PCRelocatorUltra.asp

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.