205 lines
11 KiB
Plaintext
205 lines
11 KiB
Plaintext
2019-08-13 22:55:07, Info [0x000000] SCANSTATE.EXE
|
|||
|
|
2019-08-13 22:55:07, Info [0x000000] USMT Started at 2019/08/13:22:55:07.541
|
||
|
|
2019-08-13 22:55:07, Info [0x000000] Command line: E:\usmt\tools\amd64\scanstate.exe /?
|
||
|
|
2019-08-13 22:55:07, Info [0x000000]
|
||
|
|
ScanState.exe collects files and settings into a migration store to be restored
|
||
|
|
using LoadState.exe. You must specify the same .xml files on both the
|
||
|
|
ScanState and LoadState command-lines.
|
||
|
|
|
||
|
|
Syntax: scanstate <StorePath> [Options]
|
||
|
|
|
||
|
|
StorePath Path where Scanstate saves the files and settings.
|
||
|
|
StorePath is the path to the upper level directory,
|
||
|
|
not the migration file.
|
||
|
|
For example, if you specify scanstate C:\store,
|
||
|
|
the resulting StorePath is C:\store\usmt\usmt.mig.
|
||
|
|
Do not specify the full path on the Scanstate.exe
|
||
|
|
command-line, or the migration will fail.
|
||
|
|
|
||
|
|
/auto[:ScriptDir] Calls migapp.xml, migdocs.xml, and sets logging to v:13
|
||
|
|
Use ScriptDir to specify the location of migapp.xml and
|
||
|
|
migdocs.xml if they are not in the same directory as
|
||
|
|
the ScanState executable.
|
||
|
|
|
||
|
|
/targetWindows7 Optimizes ScanState when the destination computer is
|
||
|
|
running Windows 7. You should use this option with
|
||
|
|
/genconfig and when you create a store.
|
||
|
|
|
||
|
|
/targetWindows8 Optimizes ScanState when the destination computer is
|
||
|
|
running Windows 8. You should use this option with
|
||
|
|
/genconfig and when you create a store.
|
||
|
|
|
||
|
|
/genconfig:filename Generates a Config.xml file. You cannot specify the
|
||
|
|
<StorePath> parameter.
|
||
|
|
Options you can specify are /o, /i, /v, and /l.
|
||
|
|
|
||
|
|
/genmigxml:filename Generates a Mig.xml file containing patterns for
|
||
|
|
data selection. You cannot specify the <StorePath>
|
||
|
|
parameter.
|
||
|
|
The only options that you can specify are /v and /l.
|
||
|
|
|
||
|
|
/o Overwrites any existing migration store.
|
||
|
|
|
||
|
|
/p:filename Generates a space-estimate file.
|
||
|
|
This option does not collect the user state.
|
||
|
|
|
||
|
|
/localonly Specifies that only files that are stored on the local
|
||
|
|
computer will be saved.
|
||
|
|
|
||
|
|
/efs:abort|skip|decryptcopy|copyraw|hardlink
|
||
|
|
Controls the behavior of ScanState when Encrypting
|
||
|
|
File System (EFS) files are encountered.
|
||
|
|
Abort: Fails if EFS files are found.
|
||
|
|
Skip: Ignores all EFS files and continues.
|
||
|
|
Decryptcopy:
|
||
|
|
Decrypts and copies files if possible.
|
||
|
|
Fails if the files cannot be decrypted.
|
||
|
|
Copyraw: Copies encrypted EFS files.
|
||
|
|
Hardlink:
|
||
|
|
Makes a hardlink to the EFS file.
|
||
|
|
Use only with the /hardlink option.
|
||
|
|
|
||
|
|
/encrypt:AES|AES_128|AES_192|AES_256|3DES|3DES_112
|
||
|
|
Encrypts the migration store using the specified
|
||
|
|
cryptographic algorithm. Default value is 3DES.
|
||
|
|
You must also specify the /key or /keyfile option.
|
||
|
|
|
||
|
|
/hardlink Enables hardlinks for a non-compressed store. Use only
|
||
|
|
for computer refresh scenarios. Requires /nocompress.
|
||
|
|
|
||
|
|
/key:KeyString Specifies the encryption key.
|
||
|
|
|
||
|
|
/keyfile:FileName Specifies the location and name of a .txt file
|
||
|
|
containing the encryption key.
|
||
|
|
|
||
|
|
/nocompress Specifies that the migration store is not compressed.
|
||
|
|
|
||
|
|
/ppkg Specifies that the migration store is a provisioning
|
||
|
|
package. This option cannot be used with /nocompress,
|
||
|
|
/hardlink or /p.
|
||
|
|
|
||
|
|
/drivers[:<options>] Specifies that USMT should migrate 3rd party drivers.
|
||
|
|
By default all drivers are migrated. <options> can be
|
||
|
|
used to select drivers to migrate. They are of the form
|
||
|
|
+n:<pattern>, -n:<pattern>, +p:<pattern>, -p:<pattern>,
|
||
|
|
+c:<pattern>, -c:<pattern>, where +-n can filter the
|
||
|
|
migrated driver by the name of the INF file, +-p can
|
||
|
|
filter them by publisher and +-c by class name or class
|
||
|
|
GUID. Multiple /drivers are allowed, The last pattern
|
||
|
|
matching a particular driver wins.
|
||
|
|
/drivers must be used with /ppkg.
|
||
|
|
|
||
|
|
/apps[:<options>] Specifies that USMT should capture the customization of
|
||
|
|
the current operating system. This consists of Win32
|
||
|
|
applications, system-wide settings, and any other files
|
||
|
|
that are not part of the operating system. No modern
|
||
|
|
apps and no user state will be captured.
|
||
|
|
A provisioning package captured this way can only be
|
||
|
|
consumed during the process of deploying a new OS, it
|
||
|
|
cannot be used with Loadstate
|
||
|
|
<options> can be a ';' separated list of the following:
|
||
|
|
+/-sysdrive - causes the /apps switch to examine the
|
||
|
|
entire system drive for applications and other files,
|
||
|
|
or be confined to the windows folders only
|
||
|
|
+sysdrive is the default.
|
||
|
|
+/-oeminfo - causes the /apps switch to capture or not
|
||
|
|
the OEM specific help and support information.
|
||
|
|
+oeminfo is the default.
|
||
|
|
+/-appfiles - causes the /apps switch to capture or not
|
||
|
|
the actual payload of applications. -appfiles is useful
|
||
|
|
when one wants to capture only the system settings on a
|
||
|
|
computer where applications were already captured.
|
||
|
|
+appfiles is the default.
|
||
|
|
/apps must be used with /ppkg unless /genconfig is used.
|
||
|
|
/apps cannot be used with any /target switches.
|
||
|
|
|
||
|
|
|
||
|
|
/diff:FileName Specifies the full path to a provisioning package that
|
||
|
|
was previously captured using /apps on this system. The
|
||
|
|
current run will use that previously captured package
|
||
|
|
to determine objects that have already been captured in
|
||
|
|
a previous run and should not be captured again.
|
||
|
|
When using the /diff switch please make sure that the
|
||
|
|
provisioning package specified by /diff is also applied
|
||
|
|
together with the one currently being captured.
|
||
|
|
/diff can only be used with /apps.
|
||
|
|
|
||
|
|
/l:FileName Specifies the location and name of the log file.
|
||
|
|
|
||
|
|
/v:Level Enables verbose output in the log file. Specify one
|
||
|
|
of the following levels: 0, 1, 4, 5, 8, 9, 12, or 13.
|
||
|
|
The default verbosity level is 0.
|
||
|
|
|
||
|
|
/progress:FileName Specifies the location and name of the optional
|
||
|
|
progress log file.
|
||
|
|
|
||
|
|
/c Specifies that the ScanState command continues to run
|
||
|
|
even if there are non-fatal errors.
|
||
|
|
|
||
|
|
/r:TimesToRetry Specifies the number of times to retry when an error
|
||
|
|
occurs. The default value is 3 attempts.
|
||
|
|
|
||
|
|
/w:SecondsToWait Specifies the time to wait, in seconds, before retrying
|
||
|
|
a failed attempt. Default value is 1 second.
|
||
|
|
|
||
|
|
/ui:[Domain\]UserName Migrates the specified users. To migrate a local user,
|
||
|
|
specify the UserName parameter only. The Domain and
|
||
|
|
UserName parameters can contain wildcard characters
|
||
|
|
(* or ?).
|
||
|
|
|
||
|
|
/ue:[Domain\]UserName Excludes the specified users. To exclude a local user,
|
||
|
|
specify the UserName parameter only. The Domain and
|
||
|
|
UserName parameters can contain wildcard characters
|
||
|
|
(* or ?).
|
||
|
|
|
||
|
|
/uel:NumberOfDays|YYYY/MM/DD
|
||
|
|
Specifies that the migration should exclude users that
|
||
|
|
have not logged on within the specified time period.
|
||
|
|
The NumberOfDays parameter can be 0 to exclude all
|
||
|
|
users who are not currently logged on.
|
||
|
|
|
||
|
|
/i:FileName Specifies the location and name of an .xml file that
|
||
|
|
contains rules that define the settings and files
|
||
|
|
to migrate.
|
||
|
|
|
||
|
|
/help or /? Displays help at the command line.
|
||
|
|
|
||
|
|
/config:FileName Specifies the Config.xml file that USMT should use.
|
||
|
|
|
||
|
|
/offlineWinDir:WinDir Specifies the path to the offline windows directory
|
||
|
|
that USMT should use to gather user state.
|
||
|
|
|
||
|
|
/offlineWinOld:WinDir Specifies the path to the offline windows old directory
|
||
|
|
that USMT should use to gather user state.
|
||
|
|
|
||
|
|
/offline:FileName Specifies the Offline.xml file that USMT should use
|
||
|
|
to gather user state.
|
||
|
|
Note: This is an alternative to /offlineWinDir or
|
||
|
|
/offlineWinOld
|
||
|
|
|
||
|
|
/vsc:OFF Turns off volume shadow copy when a file is in use.
|
||
|
|
For compatibility reasons /vsc is still supported, but
|
||
|
|
volume shadow copy is now turned on by default.
|
||
|
|
Specify /vsc:OFF to turn it off explicitly
|
||
|
|
|
||
|
|
/tel:ON|OFF Turns on or off telemetry. If on, the tool will send
|
||
|
|
data about USMT usage to Microsoft.
|
||
|
|
Telemetry is currently ON by default.
|
||
|
|
|
||
|
|
/listfiles:FileName Specifies the location and name of a file which will
|
||
|
|
contain a list of all files gathered.
|
||
|
|
|
||
|
|
Notes:
|
||
|
|
|
||
|
|
* For more information about these options, see the USMT User's Guide
|
||
|
|
(https://go.microsoft.com/fwlink/?LinkId=213336).
|
||
|
|
* You can specify the /i, /ui, /ue and /uel options more than once
|
||
|
|
if necessary.
|
||
|
|
* You cannot specify the /key and /keyfile options together.
|
||
|
|
* You cannot specify the /encrypt and /nocompress options together.
|
||
|
|
* You cannot specify the /encrypt and /ppkg options together.
|
||
|
|
|
||
|
|
[gle=0x00000002]
|
||
|
|
2019-08-13 22:55:07, Info [0x000000] USMT Completed at 2019/08/13:22:55:07.570[gle=0x00000002]
|
||
|
|
2019-08-13 22:55:07, Info [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------[gle=0x00000002]
|