Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! How Can I Get a List of Domain Controllers in My Domain? (Part 1)

Hey, Scripting Guy! I hope you do not think I am clueless, but I need to obtain a list of all the domain controllers in my domain. Can you help me out by writing a Windows PowerShell script to list all of the domain controllers in my domain? < p style="MARGIN: 0in 0in 8pt" class="MsoNormal">-- KH Hello KH, Microsoft ...

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (10/2/09)

In this post:   Troubleshooting a VBScript That Uses Systems Management Server 2003 Hey, Scripting Guy! I'm beating my head against the wall with a VBScript. My intent is to run this script on all my Windows XP machines (600), using Systems Management Server (SMS) 2003 to determine their uptime in hours since last ...

Hey, Scripting Guy! How Can I Use Windows PowerShell to Stop Services?

(Portions of this blog post previously appeared in the Microsoft Press book, Windows PowerShell Scripting Guide.) Hey, Scripting Guy! I have some services that are running on my computer. I looked them up on TechNet and I do not believe I need them to be running. Is there a way I can write a Windows PowerShell script to stop the services...

Feedback usabilla icon