In Configuration Manager, the RefreshNTGroupMembership Windows Management Instrumentation (WMI) class method 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 is intended to show the definition of the method.
UInt32 RefreshNTGroupMembership( String GroupMembership )
- Data type: String Qualifiers: [out]List of Windows NT group memberships for the user.
A UInt32 data type.
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.
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
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
Send comments about this topic to Microsoft.