The GetSiteADInfo Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets Active Directory information of site server.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 GetSiteADInfo(
   String SiteCode,
   String DCName,
   String DCAddress,
   String DomainName,
   String ForestName,
   String DCSiteName,
   String ClientSiteName
);

Parameters

SiteCode

Data type: StringQualifiers: [in]Site code.  
DCName

Data type: StringQualifiers: [out]Name of the Active Directory domain controller.
DCAddress

Data type: StringQualifiers: [out]Domain controller address.
DomainName

Data type: StringQualifiers: [out]Domain name.
ForestName

Data type: StringQualifiers: [out]Name of the Active Directory forest.
DCSiteName

Data type: StringQualifiers: [out]Name of the Active Directory site where the domain controller is located.
ClientSiteName

Data type: StringQualifiers: [out]Name of the site that the computer belongs to.

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.

Requirements

Runtime Requirements

Development Requirements

See Also