Scripting Blog

A place to learn about PowerShell and share stories of automation

Query Active Directory with PowerShell and Run WMI Commands

Summary: Use Windows PowerShell to Query Active Directory for computers and then run WMI commands on the remote machines. The Scripting Guys show you how.   Hey, Scripting Guy! We have a major problem at my company. We have a standard corporate desktop we are deploying by using the Windows Deployment tool kit. That part is going ...

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

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

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

Changing the Fonts Used by the Windows PowerShell ISE

  Summary: See how to change the fonts used by the Windows PowerShell ISE in the Script pane and Output pane.   Microsoft Scripting Guy Ed Wilson here. The summer is rapidly drawing to a close, although the summer heat and humidity will more than likely linger for another month. The key indicator that summer is over is the appearance...