Scripting Blog [archived]

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

How Can I Determine an Attribute’s Data Type and Whether It is Single- or Multi-Valued?

(image) Hey, Scripting Guy! How can I query the Active Directory schema for an attribute’s data type and whether it is single-valued or multi-valued?-- MS(image) (image) (image) Hey, MS. You know, this turned out to be one of those questions that drive us crazy: after all, it seemed like it would be so easy to answer. As you’ve ...

How Can I Determine Which Drives are Mapped to Network Shares?

(image) Hey, Scripting Guy! How can I determine which drives on a computer are mapped to network shares?-- CP(image) (image) (image) Hey, CP. OK, you better sit down, because what we’re about to say will shock you: if you want to determine which drives on a computer are mapped to network shares, don’t use the Win32_MappedLogicalDisk ...

How Can I Determine if an OU is Blocking Group Policy Inheritance?

(image) Hey, Scripting Guy! How can I determine if an OU has the Group Policy property Block Policy Inheritance box checked?-- PP(image) (image) (image) Hey, PP. You know, sometimes you wait all your life for a situation to arise, and then it never arises. For example, one of the Scripting Guys happens to know all nine verses to the song ...