How can I determine which groups I’m a member of for my current logon session?
August 3rd, 2005 . by AliYou can use the whoami command with the /groups switch to display all the groups in the currently logged on user token as the following command and output show:
whoami /groups
C:\Documents and Settings\ali>whoami /groups
[Group 1] = “UK\Domain Users”
[Group 2] = “Everyone”
[Group 3] = “MERCURY\Debugger Users”
[Group 4] = “BUILTIN\Administrators”
[Group 5] = “BUILTIN\Users”
[Group 6] = “UK\Domain Admins”
[Group 7] = “UK\Enterprise Admins”
[Group 8] = “UK\Schema Admins”
[Group 9] = “LOCAL”
[Group 10] = “NT AUTHORITY\INTERACTIVE”
[Group 11] = “NT AUTHORITY\Authenticated Users”
