SMS_TaskSequence_CaptureUserStateAction Server WMI Class

System Center

Updated: October 28, 2009

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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;
};

The SMS_TaskSequence_CaptureUserStateAction class does not define any methods.

Condition
Data type: SMS_TaskSequence_Condition

Access type: Read/Write

Qualifiers: None

See SMS_TaskSequence_Action Server WMI Class.

ConfigFiles
Data type: String Array

Access type: Read/Write

Qualifiers: None

The configuration files used to capture user profiles. Set this property for customized user profile migration.

ContinueOnError
Data type: Boolean

Access type: Read/Write

Qualifiers: None

See SMS_TaskSequence_Action Server WMI Class.

ContinueOnLockedFiles
Data type: Boolean

Access type: Read/Write

Qualifiers: [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: String

Access type: Read/Write

Qualifiers: [AllowedLen("0-255")]

See SMS_TaskSequence_Action Server WMI Class.

Enabled
Data type: Boolean

Access type: Read/Write

Qualifiers: None

See SMS_TaskSequence_Action Server WMI Class.

EnableVerboseLogging
Data type: Boolean

Access type: Read/Write

Qualifiers: [Not_Null]

true to enable verbose logging for the USMT. The default value is false. This property is required.

Mode
Data type: String

Access type: Read/Write

Qualifiers: [Not_Null]

Mode that allows customization of the files captured by the USMT. Possible values are:

  • Simple (default)

  • Advanced

This property is required.

Name
Data type: String

Access type: Read/Write

Qualifiers: [AllowedLen("1-100")]

See SMS_TaskSequence_Action Server WMI Class.

SkipEncryptedFiles
Data type: Boolean

Access type: Read/Write

Qualifiers: [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: String

Access type: Read/Write

Qualifiers: [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: UInt32

Access type: Read/Write

Qualifiers: None

See SMS_TaskSequence_Action Server WMI Class.

UsmtPackageID
Data type: String

Access type: Read/Write

Qualifiers: [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.

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.

Runtime Requirements

Development Requirements

Show: