Scripting Blog [archived]

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

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

(image) (image) Hey, Scripting Guy! I need to obtain a listing of the domain controllers in my domain. I am thinking about using Windows PowerShell to query the Domain Controllers Organizational Unit, but I am not sure this is the right approach. Will this work? If it does work, will you write a Windows PowerShell script to query the ...

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

(image) (image) 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 (image) Hello ...

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

(image) (Portions of this blog post previously appeared in the Microsoft Press book, Windows PowerShell Scripting Guide.) (image) 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 ...