Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Standardize the Logon Name for All My Users?

(image) Hey, Scripting Guy! My company would like me to change our Active Directory logon names from this format – kmyer – to this format: Ken.Myer. Is there a way I can script all these changes?-- DO(image) (image) (image) Hey, DO. You know, sometimes the Scripting Guy who writes this column implies that he leads a dull and drab life...

Hey, Scripting Guy! How Can I List the Members of a Domain Group That Belongs to the Local Administrators Group?

(image) Hey, Scripting Guy! I manage over 300 servers in our environment. For each server I need to determine the members of the local Administrators account. It’s easy to get a list of local users and domain users that belong to the Admin account; it’s also easy to get a list of any domain groups that belong to the Administrators ...

Hey, Scripting Guy! How Can I Get a List of Active Directory Groups That Have Just 1 Member or Fewer?

(image) Hey, Scripting Guy! We’re trying to straighten out our Active Directory, and in order to do so, I’ve been asked to come up with a list of all the groups that have just 1 member or fewer. How can I write a script that will return this information for me?-- DR (image) (image) (image) Hey, DR. Before we answer your question ...

Hey, Scripting Guy! How Can I Use Windows PowerShell to Add a Domain User to a Local Group?

(image) Hey, Scripting Guy! I recently came across your article where you showed people how to use VBScript to add a domain user to a local group. How can I do that same task using Windows PowerShell?-- KE(image) (image) (image) Hey, KE. Before we begin we thought we should mention that the Scripting Guy who writes this column has a new ...

Hey, Scripting Guy! How Can I List All the Users in an OU Who Are Not Members of a Specified Group?

(image) Hey, Scripting Guy! How can I get a list of all the users in an OU who are not a member of a specified group?-- TJ (image) (image) (image) Hey, TJ. You know, the Scripting Guys are having so much fun with the 2008 Winter Scripting Games that we just can’t bear to see the excitement come to an end; therefore, we’ve decided...