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)
Property | Data type | Example | Notes |
---|---|---|---|
BuildNumber | uint32 | 1065 | Provides 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 | uint32 | 1 | Indicates the secondary site status. Use this property to create and upgrade secondary sites.
Values are: |
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 | uint32 | 1 | Indicates the current status of the site.
Values are: |
TimeZoneInfo | string | Appears as a lengthy string. | The site server time zone represented as a Win32 TIME_ZONE_INFORMATION structure returned by Win32 GetTimeZoneInformation. |
Type | uint32 | 2 | Indicates the type of site.
Values are: |
Version | string | "2.0" | Indicates the SMS version running on the current site. |