GetAssignedSite Method in Class SMS_Client
In Configuration Manager, the GetAssignedSite
method gets the current assigned site of the client.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
Syntax
UInt32 GetAssignedSite(
String sSiteCode
);
Parameters
sSiteCode
Data type: String
Qualifiers: [out]
The site code for the currently assigned site.
Return Values
A UInt32
data type that is 0 to indicate success or non-zero to indicate failure.
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
SMS_Client Client WMI Class
EvaluateMachinePolicy method in Class SMS_Client
RequestMachinePolicy method in Class SMS_Client
ResetPolicy method in Class SMS_Client
SetAssignedSite method in Class SMS_Client
SetGlobalLoggingConfiguration method in Class SMS_Client
TriggerSchedule method in Class SMS_Client
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