SMS_Site Server WMI Class

The SMS_Site Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents identification and status data for a Configuration Manager site installation.

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

Syntax

Class SMS_Site : SMS_BaseClass   
{   
      UInt32 BuildNumber;   
      String Features;   
      String InstallDir;   
      UInt32 Mode;   
      String ReportingSiteCode;   
      UInt32 RequestedStatus;   
      UInt32 SecondarySiteCMUpdateStatus;  
      String ServerName;   
      String SiteCode;   
      String SiteName;   
      UInt32 Status;   
      String TimeZoneInfo;   
      UInt32 Type;   
      String Version;   
};  

Methods

The following table shows the methods in the SMS_Site class.

Method Description
EncryptDataEx Method in Class SMS_Site Encrypts data using the specified site server's public key and returns the encrypted data.
GetAutoUpgradeConfigs Method in Class SMS_Site Gets configurations for autoupgrade settings.
GetClientInfo Method in Class SMS_Site Gets information about a client.
GetClientPilotingConfigs Method in Class SMS_Site Gets the configurations for client piloting settings.
GetFeatureState Method in Class SMS_Site Gets the enabled/disabled state of a feature.
GetSiteADInfo Method in Class SMS_Site Gets Active Directory information of site server.
ImportGlobalUserAccount Method in Class SMS_Site Encrypts data that is shared in the hierarchy.
ImportGlobalUserAccountEx Method in Class SMS_Site Encrypts data that is shared in the hierarchy.
ImportMachineEntry Method in Class SMS_Site Imports computer information.
IsUsedCert Method in Class SMS_Site Determines whether the specified certificate is used.
RedistributeAutoUpgradeClientContent Method in Class SMS_Site Redistributes autoupgrade client content to the specified distribution point.
SubmitRegistrationRecord Method in Class SMS_Site Submits a registration record.
UpdateAutoUpgradeClientContent Method in Class SMS_Site Updates autoupgrade client content to all distribution points.
UpdateAutoUpgradeConfigs Method in Class SMS_Site Updates configurations for autoupgrade settings.
UpdateClientPilotingConfigs Method in Class SMS_Site Updates the configurations for client piloting settings.
UpdateConsoleUsageData Method in Class SMS_Site Updates console usage data received from console connections.
UpdateFeatureState Method in Class SMS_Site Updates the enabled/disabled state of a feature.
VerifyNoLoops Method in Class SMS_Site Determines whether the parent-child relationship for a given site results in a recursive loop.

Properties

BuildNumber
Data type: UInt32

Access type: Read-only

Qualifiers: [read]

Configuration Manager build number. The default value is 0.

Features
Data type: String

Access type: Read/Write

Qualifiers: None

Reserved for internal use.

InstallDir
Data type: String

Access type: Read/Write

Qualifiers: None

Directory in which Configuration Manager was installed. The default value is "".

Mode
Data type: UInt32

Access type: Read/Write

Qualifiers: [enumeration]

Mode of the site. Possible values are:

Value Site mode
1 Replication maintenance.
2 Recovery in progress.
3 Upgrade in progress.
4 Evaluation has expired.
5 Site expansion in progress.
6 Interop mode where there are primary sites, having the same version as the CAS, weren't upgraded.
7 Interop mode where there are secondary sites, having the same version as the top-level site server, weren't upgraded.

ReportingSiteCode
Data type: String

Access type: Read/Write

Qualifiers: [SizeLimit("3")]

Site code for the parent of the current site. The default value is "".

RequestedStatus
Data type: UInt32

Access type: Read/Write

Qualifiers: [enumeration]

Value indicating a request for secondary site status. Possible values are listed below. The default value is 1001.

Value Requested site status
1001 Create a secondary site; the primary site will send down the installation media.
1002 Create a secondary site using the installation media already available on the secondary site.
1003 Secondary site creation has started.
1004 Upgrade a secondary site; the primary site will send down the installation media.
1005 Upgrade a secondary site using the installation media already available on the secondary site.
1006 Secondary site upgrade has started.
1007 Deinstall a secondary site.
1008 Secondary site deinstall has started.
1009 Delete a secondary site.
1010 Secondary site deletion has started.
1011 Recover a secondary site; the primary site will send down the installation media.
1012 Recover a secondary site; the installation media is already available on the secondary site.
1013 Secondary site recovery has started.

Use this property for creating and upgrading a secondary site. Only values preceded by "SEC_REQUEST_" can be set.

SecondarySiteCMUpdateStatus
Data type: UInt32

Access type: Read/Write

Qualifiers: None

Indicates whether the secondary site server has the latest Configuration Manager updates installed from its parent.

ServerName
Data type: String

Access type: Read/Write

Qualifiers: None

Server name of the site on which Configuration Manager is installed. The default value is "".

SiteCode
Data type: String

Access type: Read/Write

Qualifiers: [key, SizeLimit("3")]

Three-letter site code for the site. The default value is "".

SiteName
Data type: String

Access type: Read/Write

Qualifiers: None

Name of the site. The default value is "".

Status
Data type: UInt32

Access type: Read-only

Qualifiers: [read, enumeration]

Current status of the site. Possible values are listed below. The default value is ACTIVE (1).

Value Site status
1 ACTIVE
2 PENDING
3 FAILED
4 DELETED
5 UPGRADE
6 Failed to delete or deinstall the secondary site.
7 Failed to upgrade the secondary site.
8 Secondary site recovery is in progress.
9 Failed to recover secondary site.

TimeZoneInfo
Data type: String

Access type: Read/Write

Qualifiers: None

Site server time zone represented as a Win32 TIME_ZONE_INFORMATION structure that is retrieved by the Win32 GetTimeZoneInformation function. The default value is "".

Type
Data type: UInt32

Access type: Read/Write

Qualifiers: [enumeration]

Type of site. Possible values are listed below. The default value is SECONDARY (1).

Value Site type
1 SECONDARY
2 PRIMARY
4 CAS

Version
Data type: String

Access type: Read/Write

Qualifiers: None

Complete Configuration Manager version of the current site. The default value is "".

Remarks

Class qualifiers for this class include:

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

Configuration Manager Site Configuration Server WMI Classes