GetSiteADInfo Method in Class SMS_Site
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.
Syntax
SInt32 GetSiteADInfo(
String SiteCode,
String DCName,
String DCAddress,
String DomainName,
String ForestName,
String DCSiteName,
String ClientSiteName
);
Parameters
SiteCode
Data type: String
Qualifiers: [in]
Site code.
DCName
Data type: String
Qualifiers: [out]
Name of the Active Directory domain controller.
DCAddress
Data type: String
Qualifiers: [out]
Domain controller address.
DomainName
Data type: String
Qualifiers: [out]
Domain name.
ForestName
Data type: String
Qualifiers: [out]
Name of the Active Directory forest.
DCSiteName
Data type: String
Qualifiers: [out]
Name of the Active Directory site where the domain controller is located.
ClientSiteName
Data type: String
Qualifiers: [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
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for