Windows 7 / Getting Started

Scanstate.exe

You use ScanState to save user state data. By default, this program places user state data into the data store location as defined by the three migration .xml files. The following describes an abbreviated syntax of ScanState, and Table below describes each command-line option.

Scanstate.exe [Store][/i:[path\]filename] [/config:[path\]file] [/hardlink /nocompress]
[/o] [/p[:file]] [/vsc]

Scanstate.exe Command-Line Options

OptionDescription
StoreSpecifies a path to the data store.
/config:[path\]fileSpecifies a Config.xml file. (See the section titled "Developing Migration Files" later in this tutorial for more information.)
/hardlinkEnables the creation of a hard-link migration store at the location specified by Store. You must specify the /nocompress option when using this option.
/i:[path\]filenameIdentifies a migration .xml file to use when saving state data. You can use this option multiple times.
/nocompressDisables data compression. Use this option only with the /hardlink option or when testing in a lab environment
/oOverwrites existing data in the data store.
/p[:file]Creates a size estimate in the path specified. When used without a path, it creates a size estimate file called USMTsize.txt in the location specified by Store.
/vscCreates a size estimate in the path specified. When used without a path, it creates a size estimate file called USMTsize.txt in the location specified by Store.

Note ScanState supports many other command-line options. For a complete list of these options, see the USMT.chm help file in the Windows AIK.

[Previous] [Contents] [Next]