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.

Class SMS_Site : SMS_BaseClass 
{ 
	UInt32 BuildNumber; 
	String Features; 
	String InstallDir; 
	UInt32 Mode; 
	String ReportingSiteCode; 
	UInt32 RequestedStatus; 
	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 auto-upgrade settings.

GetClientInfo Method in Class SMS_Site

Gets information about a client.

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 auto-upgrade client content to the specified distribution point.

SubmitAMTCert Method in Class SMS_Site

Submits a certificate for a computer that implements Intel Active Management Technology (Intel AMT).

SubmitRegistrationRecord Method in Class SMS_Site

Submits a registration record.

UpdateAutoUpgradeClientContent Method in Class SMS_Site

Updates auto-upgrade client content to all distribution points.

UpdateAutoUpgradeConfigs Method in Class SMS_Site

Updates configurations for auto-upgrade settings.

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: UInt32Access type: Read-onlyQualifiers: [read]Configuration Manager build number. The default value is 0.
Features

Data type: StringAccess type: Read/WriteQualifiers: NoneReserved for internal use.
InstallDir

Data type: StringAccess type: Read/WriteQualifiers: NoneDirectory in which Configuration Manager was installed. The default value is "".
Mode

Data type: UInt32Access type: Read/WriteQualifiers: [enumeration]Value indicating a request for secondary site status. Possible values are listed below.

0

Normal

1

Maintenance

2

Recovery

3

Upgrade

Mode …
ReportingSiteCode

Data type: StringAccess type: Read/WriteQualifiers: [SizeLimit("3")]Site code for the parent of the current site. The default value is "".
RequestedStatus

Data type: UInt32Access type: Read/WriteQualifiers: [enumeration]Value indicating a request for secondary site status. Possible values are listed below. The default value is 1001.

1001

SEC_REQUEST_CREATE

1002

SEC_REQUEST_CREATE_CD

1003

SEC_CREATION_STARTED

1004

SEC_REQUEST_UPGRADE

1005

SEC_REQUEST_UPGRADE_CD

1006

SEC_UPGRADE_STARTED

1007

SEC_REQUEST_DEINSTALL

1008

SEC_DEINSTALL_STARTED

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

Data type: StringAccess type: Read/WriteQualifiers: NoneServer name of the site on which Configuration Manager is installed. The default value is "".
SiteCode

Data type: StringAccess type: Read/WriteQualifiers: [key, SizeLimit("3")]Three-letter site code for the site. The default value is "".
SiteName

Data type: StringAccess type: Read/WriteQualifiers: NoneName of the site. The default value is "".
Status

Data type: UInt32Access type: Read-onlyQualifiers: [read, enumeration]Current status of the site. Possible values are listed below. The default value is ACTIVE (1).

1

ACTIVE

2

PENDING

3

FAILED

4

DELETED

5

UPGRADE

TimeZoneInfo

Data type: StringAccess type: Read/WriteQualifiers: NoneSite 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: UInt32Access type: Read/WriteQualifiers: [enumeration]Type of site. Possible values are listed below. The default value is SECONDARY (1).

1

SECONDARY

2

PRIMARY

4

CAS

Version

Data type: StringAccess type: Read/WriteQualifiers: None Complete Configuration Manager version of the current site. The default value is "".

Remarks

Class qualifiers for this class include:

  • Secured

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

SMS_Site can be used to get the site server name from a known site code. For an example, see How to Enable a PXE Service Point Role.

Requirements

Runtime Requirements

Development Requirements

See Also