Showing tag results for Active Directory

Nov 19, 2004
Post comments count0
Post likes count0

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

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
Nov 12, 2004
Post comments count0
Post likes count0

How Can I Tell If an OU Has Any User Accounts In It?

ScriptingGuy1

Hey, Scripting Guy! How can I tell if an OU has any user accounts in it?-- RL Hey, RL. As a matter of fact, there is a way to determine whether or not an OU contains any user accounts: all you have to do is search just that OU for nothing but user accounts. When you perform a search, any “hits” (in this case, any user accounts that are found) co...

Scripting Guy!VBScriptActive Directory
Nov 5, 2004
Post comments count0
Post likes count0

How Can I Work with a CN that Has a Comma in It?

ScriptingGuy1

Hey, Scripting Guy! My user accounts have commas in their CN attributes; for example, Myer, Ken. How do I bind to those user accounts using a script? I always get the error message “An invalid dn syntax has been specified.”-- GT Hey, GT. For those of you who don’t know, the CN attribute is the attribute that uniquely identifies ...

Scripting Guy!VBScriptActive Directory
Oct 21, 2004
Post comments count0
Post likes count0

How Can I Determine the OU a User Account Belongs To?

ScriptingGuy1

Hey, Scripting Guy! How do I determine the OU a user account belongs to?-- CO Hey, CO. Ah, yes: the OU a user belongs to. No doubt a lot of you are thinking, “Well, there’s probably an OU property of some kind in Active Directory that gives you that information. All you have to do is locate the user account, and then get the value of the OU prop...

Scripting Guy!VBScriptActive Directory
Oct 15, 2004
Post comments count0
Post likes count0

How Can I Change a User’s Password?

ScriptingGuy1

Hey, Scripting Guy! How can I change a user’s password using a script?-- GO Hey, GO. You didn’t indicate whether you wanted to change the password for a local user or for an Active Directory user. But that’s OK: the processes are so similar we’ll go ahead and show you how to do both. It’s like getting two Hey, Scripting Guy! columns for the pric...

Scripting Guy!VBScriptActive Directory