Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

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

(image) 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(image) (image) (image) Hey, CB. Interesting question. We’re assuming that you’ve delegated control of Active Directory. User A, for example, has the ...

How Can I Change a User’s Password?

(image) Hey, Scripting Guy! How can I change a user’s password using a script?-- GO(image) (image) (image) 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 ...