RefreshNTGroupMembership Method in Class SMS_SecuredObject
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
The RefreshNTGroupMembership Windows Management Instrumentation (WMI) class method, in Configuration Manager, refreshes the information that is stored about the user's Windows NT group membership.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
Syntax
UInt32 RefreshNTGroupMembership(
String GroupMembership[]
);
Parameters
GroupMembership
Data type: StringQualifiers: [out]
List of Windows NT group memberships for the user.
Return Values
A UInt32 data type.
Remarks
The provider typically caches information about the current user's membership in Windows user groups and refreshes the user's membership information approximately every 10 minutes. Calling this method causes the provider to refresh this information.
Example Code
The following example shows how to call the RefreshNTGroupMembership method to refresh the Windows NT group membership list.
Dim Security As SWbemObject
Dim Groups() As Variant
Set Security = GetObject("winmgmts:root\sms\site_<sitecode>:SMS_SecuredObject")
Security.RefreshNTGroupMembership Groups
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
SMS_SecuredObject Server WMI Class
GetCollectionsWithResourcePermissions Method in Class SMS_SecuredObject
UserHasPermissions Method in Class SMS_SecuredObject