Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Modify the Email Addresses of All the Users in an OU and Its SubOUs?

 (image) Hey, Scripting Guy! I need to get a list of all the users in an OU and its subOUs, then change their email addresses so those addresses only user lowercase letters. How can I do that?-- TB(image) (image) (image) Hey, TB. You know, we had to think twice before going ahead and answering this question. That’s not because this ...

Hey, Scripting Guy! How Can I Search Multiple OUs in Active Directory?

(image) Hey, Scripting Guy! I have an HTA that searches Active Directory for user accounts and then displays those user names. We have 10 OUs in Active Directory, but I only want to retrieve the users from three of those OUs. How do I do that?-- DP(image) (image) (image) Hey, DP. Here’s a little secret for you: it’s very easy to tell ...

Hey, Scripting Guy! How Can I Determine the Home Directory For All the Disabled User Accounts in Active Directory?

(image) Hey, Scripting Guy! How can I determine the home directory for all the disabled user accounts in Active Directory?-- DB(image) (image) (image) Hey, DB. You know, it’s not like the Scripting Guy who writes this column is addicted to TV or anything, but last night he was watching TV (as usual) when he saw a brief feature on a new ...

How Can I Search Active Directory for User Names Stored in an Excel Spreadsheet?

(image) Hey, Scripting Guy! How can I take user names from an Excel spreadsheet, search for those users in Active Directory, and then indicate whether or not each user was found?-- SD(image) (image) (image) Hey, SD. You know, one of the drawbacks to writing a daily scripting column is that people never seem to believe you. For one thing, ...

How Can I Use Windows PowerShell to Get a List of All My Computers?

(image) Using Windows PowerShell, how can I retrieve a list of all the computer accounts in my domain?-- TE(image) (image) (image) Hey, TE. You know, several years ago the Scripting Guy who writes this column was playing basketball with one of his brothers. Because there were a total of 5 people at the park they had to play 2-on-2, with one ...