The SMS_StateMigration Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that contains all the state migration information for a specific computer association and exposes methods for managing an association.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_StateMigration : SMS_BaseClass
{
   String MigrationID;
   UInt32 MigrationType;
   UInt32 RestoreClientResourceID;
   String RestoreLastLogonUserDomain;
   String RestoreLastLogonUserName;
   String RestoreMACAddresses;
   String RestoreName;
   UInt32 SourceClientResourceID;
   String SourceLastLogonUserDomain;
   String SourceLastLogonUserName;
   String SourceMACAddresses;
   String SourceName;
   DateTime StoreCreationDate;
   DateTime StoreDeletionDate;
   String StorePath;
   DateTime StoreReleaseDate;
   SMS_StateMigrationUserNames UserNames[];
};

Methods

The following table shows the methods in SMS_StateMigration.

Method Description

AddAssociation Method in Class SMS_StateMigration

Adds the association between two system resources.

DeleteAssociation Method in Class SMS_StateMigration

Deletes the association between two system resources.

GetEncryptDecryptKey Method in Class SMS_StateMigration

Retrieves the symmetric key that is used to encrypt and decrypt the user state.

Properties

MigrationID


Data type: StringAccess type: Read-onlyQualifiers: [read]Unique migration ID. The default value is "".
MigrationType


Data type: UInt32Access type: Read-onlyQualifiers: [read]The migration type used to store the user state. Possible values are:

1

SIDEBYSIDE

2

INPLACE

RestoreClientResourceID


Data type: UInt32Access type: Read/WriteQualifiers: [key]Unique resource ID of the restore client.
RestoreLastLogonUserDomain


Data type: StringAccess type: Read-onlyQualifiers: [read]Last logon user domain of the user on the restore client.
RestoreLastLogonUserName


Data type: StringAccess type: Read-onlyQualifiers: [read]Last logon user name on the restore client.
RestoreMACAddresses


Data type: StringAccess type: Read-onlyQualifiers: [read]Media access controller (MAC) addresses of the restore client.
RestoreName


Data type: StringAccess type: Read-onlyQualifiers: [read]Name of the restore client.
SourceClientResourceID


Data type: UInt32Access type: Read/WriteQualifiers: [key]Unique ID of the source client.
SourceLastLogonUserDomain


Data type: StringAccess type: Read-onlyQualifiers: [read]Last logon user domain of the user on the source client.
SourceLastLogonUserName


Data type: StringAccess type: Read-onlyQualifiers: [read]Last logon user name on the source client.
SourceMACAddresses


Data type: StringAccess type: Read-onlyQualifiers: [read]MAC addresses of the source client.
SourceName


Data type: StringAccess type: Read-onlyQualifiers: [read]Name of the source client.
StoreCreationDate


Data type: DateTimeAccess type: Read-onlyQualifiers: [read]Date and time when the state was saved. The default value is "00000000000000.000000+***".
StoreDeletionDate


Data type: DateTimeAccess type: Read-onlyQualifiers: [read]Date and time when the state was deleted. The default value is "00000000000000.000000+***".
StorePath


Data type: StringAccess type: Read-onlyQualifiers: [read]The UNC path indicating the location of the state store.
StoreReleaseDate


Data type: DateTimeAccess type: Read-onlyQualifiers: [read]Date and time when the state was migrated. The default value is "00000000000000.000000+***".
UserNames


Data type: SMS_StateMigrationUserNames ArrayAccess type: Read-onlyQualifiers: [read, lazy]SMS_StateMigrationUserNames Server WMI Class objects representing the user names to be migrated.

Remarks

Class qualifiers for this class include:

  • Secured

For more information about both the class qualifiers and the property qualifiers that are included in the Properties section, see Configuration Manager Class and Property Qualifiers.

This class represents state migration that is used in configuring sites for operating system deployment. State migration primarily affects resources, for example, memory, for the state migration point. During migration, user state and settings are copied from one computer to another as part of operating system deployment.

Note
The state migration point requires Internet Information Services (IIS) to be installed.

For an example of the use of this class, see How to Create an Association Between Two Computers in Configuration Manager.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.