The FindResourceSite Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets site code information for resources from SQL.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

SInt32 FindResourceSite(
   Boolean IncludeSubCollections,
   String SiteCode[],
   UInt32 ResourceNumber[]



Data type: BooleanQualifiers: [in, optional]true if subcollections should be included. The default value is false.  

Data type: String ArrayQualifiers: [out]Site code of the Configuration Manager site.  

Data type: UInt32 ArrayQualifiers: [out]…. 

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.


Runtime Requirements

Development Requirements

See Also