Site

The Site object type, a resource class, consists of a single attribute class, SMS_Site, with attributes representing an SMS site.

Table B.39 Site (SMS_Site)

PropertyData typeExampleNotes
BuildNumber uint321065Provides the SMS build number.
InstallDir string"C:\SMS"Indicates the directory that SMS was installed to.
ReportingSiteCode string"ABC"Indicates the site code for the parent site.
RequestedStatus uint321Indicates the secondary site status. Use this property to create and upgrade secondary sites.

Values are:
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

ServerName string"BARACUDA"Indicates the server name of the site that SMS is installed on.
SiteCode string"TTG"Indicates the three-letter site code for the site.
SiteName string"SMS TEST"Indicates the name of the site.
Status uint321Indicates the current status of the site.

Values are:
1=ACTIVE
2=PENDING
3=FAILED
4=DELETED
5=UPGRADE

TimeZoneInfostringAppears as a lengthy string.The site server time zone represented as a Win32 TIME_ZONE_INFORMATION structure returned by Win32 GetTimeZoneInformation.
Type uint32 2Indicates the type of site.

Values are:
1=SECONDARY
2=PRIMARY

Version string"2.0"Indicates the SMS version running on the current site.