Scripting Blog [archived]

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

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 ...

Hey, Scripting Guy! How Can I Bind to a User Account Using Something Other Than the CN Attribute?

(image) Hey, Scripting Guy! Can I bind to an Active Directory account using the user’s mailNickname or their sAMAccoutName, something other than the CN?-- MB (image) (image) Hey, MB. When you bind to an account in Active Directory, you need to pass GetObject the account’s ADsPath. That means you need to use a line of code similar...