Showing results for ADSystemInfo - Scripting Blog [archived]

Aug 20, 2004
0
0

How Can I Determine Which Groups a User Belongs To?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In my logon script, how can I find out which Active Directory groups a user belongs to? -- JB, Montpelier, VT Hey, JB. This is pretty easy to do in a logon script: So what’s going on here? Well, we begin by using the ADSystemInfo object to determine the distinguished name of the logged-on user; that will be a name similar to th...

Scripting Guy!scripting techniquesVBScript