The FindMachineSite Windows Management Instrumentation (WMI) class method, in System Center 2012 Configuration Manager, gets site code information for a specific resource.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
sint32 FindMachineSite( uint32 ResourceID, string SiteCode );
- Data type: UInt32Qualifiers: [in]Configuration Manager supplied ID that uniquely identifies a client resource.
- Data type: String ArrayQualifiers: [out]Site code of the site with which the resource is associated.
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For more information about handling returned errors, see About Configuration Manager Errors.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.