Scripting Blog [archived]

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

Query Active Directory and Ping Each Computer in the Domain by Using PowerShell

Summary: Query Active Directory and ping each computer in the domain by using Windows PowerShell. The Scripting Guys show you how.   (image) Hey, Scripting Guy! I am THE IT person at my company. I am also a chemical engineer who has daily production responsibilities in our process plant. You see, I am supposed to be a part-time IT person...

Use the PowerShell [adsiSearcher] Type Accelerator to Search Active Directory

  Summary: Learn how to use the Windows PowerShell [adsiSearcher] type accelerator to search Active Directory Domain Services (AD DS). (image) Hey, Scripting Guy! I am trying to get in touch with my inner programmer. The problem is that our company has cut head count in the past two years, and the remaining staff (myself included) is...

Use the DirectorySearcher .NET Class and PowerShell to Search Active Directory

Summary: Learn how to search Active Directory Domain Services from Windows PowerShell by using the DirectorySearcher .NET class.   (image) Hey Scripting Guy! I am curious about searching Active Directory Domain Services (AD DS) from Windows PowerShell. I have seen lots of things on the Internet, but they all seem to rely upon things that...

Use PowerShell to Add Domain Users to a Local Group

  Summary: By using Windows PowerShell splatting, domain users can be added to a local group. This script includes a function to convert a CSV file to a hash table.   (image) Hey, Scripting Guy! I need to be able to use Windows PowerShell to add domain users to local user groups. I have been able to find VBScript examples, but no ...