Showing results for ADSI - Scripting Blog [archived]

Nov 19, 2004
0
0

How Can I Put New Users in the Same OU as the Person Creating Their Accounts?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We use a script to create user accounts. How can I modify this script so that it will place the new user in the same OU as the person running the script?-- CB Hey, CB. Interesting question. We’re assuming that you’ve delegated control of Active Directory. User A, for example, has the right to create users in the Finance OU, b...

Scripting Guy!scripting techniquesVBScript
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