Scripting Blog [archived]

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

How Can I Find and Move an Active Directory Computer Account?

(image) Hey, Scripting Guy! I need to move a computer account from one OU to another; however, I don’t know which OU the computer account is currently in. Any advice?-- AA(image) (image) (image) Hey, AA. You know, one thing that marks all the great advice columns - Dear Abby; Ann Landers; Hey, Scripting Guy! - is the fact that, over time...

How Can I Prompt a User to Delete (or Not Delete) a Computer Account?

(image) Hey, Scripting Guy! How can I delete a computer account from Active Directory, but provide a Yes/No prompt to the user before the account is actually deleted?-- NM(image) (image) (image) Hey, NM. Let’s start by showing you how to delete a computer account from Active Directory. But don’t worry; that won’t take long. In fact, ...