The SMS_TaskSequence_CaptureUserStateAction Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a task sequence action that uses the User State Migration Tool (USMT) to capture user state and settings from the target computer.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.
Class SMS_TaskSequence_CaptureUserStateAction : SMS_TaskSequence_Action { SMS_TaskSequence_Condition Condition; String ConfigFiles[]; Boolean ContinueOnError; Boolean ContinueOnLockedFiles; String Description; Boolean Enabled; Boolean EnableVerboseLogging; String Mode; String Name; Boolean SkipEncryptedFiles; String SupportedEnvironment; UInt32 Timeout; String UsmtPackageID; }; |
Methods
The SMS_TaskSequence_CaptureUserStateAction class does not define any methods.
Properties
- Condition
- Data type: SMS_TaskSequence_ConditionAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
- ConfigFiles
- Data type: String ArrayAccess type: Read/WriteQualifiers: NoneThe configuration files used to capture user profiles. Set this property for customized user profile migration.
- ContinueOnError
- Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
- ContinueOnLockedFiles
- Data type: BooleanAccess type: Read/WriteQualifiers: [Not_Null, VariableName("OSDMigrateContinueOnLockedFiles")]true (default) to allow the capture user state action to proceed even if some files cannot be captured. This property is required.The task sequence variable associated with this property is OSDMigrateContinueOnLockedFiles. For more information, see the MSDN documentation for Operating System Deployment Task Sequence Variables.
- Description
- Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("0-255")]See SMS_TaskSequence_Action Server WMI Class.
- Enabled
- Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
- EnableVerboseLogging
- Data type: BooleanAccess type: Read/WriteQualifiers: [Not_Null]true to enable verbose logging for the USMT. The default value is false. This property is required.
- Mode
- Data type: StringAccess type: Read/WriteQualifiers:
[Not_Null]Mode that allows customization of the files captured by
the USMT. Possible values are:
- Simple (default)
- Advanced
- Simple (default)
- Name
- Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("1-100")]See SMS_TaskSequence_Action Server WMI Class.
- SkipEncryptedFiles
- Data type: BooleanAccess type: Read/WriteQualifiers: [Not_Null, VariableName("OSDMigrateSkipEncryptedFiles")]true to skip encrypted files. The default value is false. The task sequence variable associated with this property is OSDMigrateSkipEncryptedFiles. For more information, see the MSDN documentation for Operating System Deployment Task Sequence Variables.
- SupportedEnvironment
- Data type: StringAccess type: Read/WriteQualifiers: [Not_Null:ToInstance]See SMS_TaskSequence_Action Server WMI Class.The default value of this property for this task sequence action is FullOS.
- Timeout
- Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
- UsmtPackageID
- Data type: StringAccess type: Read/WriteQualifiers: [Not_Null, VariableName("_OSDMigrateUsmtPackageID"), TaskSequencePackage]The ID of the Configuration Manager package that contains USMT binaries. This property is required.The task sequence variable associated with this property is _OSDMigrateUsmtPackageID. For more information, see the MSDN documentation for Operating System Deployment Task Sequence Variables.
Remarks
Class qualifiers for this class include:
[CommandLine("osdmigrateuserstate.exe /collect /continueOnError:%%OSDMigrateContinueOnLockedFiles%% /skipefs:%%OSDMigrateSkipEncryptedFiles%%"),VariablePrefix("OSDMigrate"),
ActionCategory{"UserState,2,3"},ActionUI{"AdminUI.TaskSequenceEditor.dll", "Microsoft.ConfigurationManagement.AdminConsole.TaskSequenceEditor", "CaptureUserStateControl", "TaskSequenceOptionControl"}]
For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.
See Also
Tasks
How to Create an Operating System Deployment Task SequenceHow to Add an Operating System Deployment Task Sequence Action
Reference
SMS_TaskSequence_Action Server WMI ClassOther Resources
Operating System Deployment Server WMI ClassesAbout Operating System Deployment Task Sequences
Configuration Manager Operating System Deployment
Send comments about this topic to Microsoft.