Scripting Blog [archived]

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

How Can I Determine the Logon Name for a User?

(image) Hey, Scripting Guy! How can I determine the user logon name for a user named John Smith?-- FR(image) (image) (image) Hey, FR. You know, we’d like to tell you how to determine the user logon name for a user named John Smith, but we can’t: that’s because we have a specific list of names representing the only user names we can ...

How Can I Determine Which Attributes are Replicated to the Global Catalog?

(image) Hey, Scripting Guy! How can I find out which attributes are replicated to the global catalog?-- AS(image) (image) (image) Hey, AS. When people envision the future, they often foresee enormous skyscrapers, buildings so large that you might live your whole life without ever leaving them: you’ll live there, work there, go to school ...

How Can I Retrieve a List of OUs that have a Specific Word in Their Name?

(image) Hey, Scripting Guy! We have a number of OUs in our domain that have the word Servers in the OU name. How can I retrieve a list of those OUs?-- AM(image) (image) (image) Hey, AM. One of the Scripting Guys has a 15-year-old son who, whenever he hears his father tell a story about the good old days, rolls his eyes and says, “You’...

How Can I Get a List of All the Disabled User Accounts in Active Directory?

(image) Hey, Scripting Guy! How can I get a list of all the disabled user accounts in Active Directory?-- RT(image) (image) (image) Hey, RT. Now, just remember, you asked for this. We have a script that returns a list of disabled user accounts in Active Directory; the only problem is that part of the script is a little cryptic (to say the ...

How Can I Display a Multi-Valued Attribute Returned from an Active Directory Search?

(image) Hey, Scripting Guy! How can I display a multi-valued attribute that I get back when using ADO to search Active Directory?-- ES(image) (image) (image) Hey, ES. For the most part Active Directory is a script writer’s paradise; with very few exceptions anything you can do using the Active Directory snap-ins and GUI tools you can ...