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.

Return Values

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.

Example Code

The following example shows how to call the RefreshNTGroupMembership method to refresh the Windows NT group membership list.

  Copy Code
Dim Security As SWbemObject
Dim Groups() As Variant
Set Security = GetObject("winmgmts:root\sms\site_<sitecode>:SMS_SecuredObject")
Security.RefreshNTGroupMembership Groups


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.