Scripting Blog [archived]

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

Use PowerShell to Work with the .NET Framework Classes

  Summary: Learn how to use Windows PowerShell to work with the .NET Framework classes and assemblies.   (image) Hey, Scripting Guy! I want to be able to find information about services that are related to device drivers but I cannot find a Windows PowerShell cmdlet that provides that information. Is there something in the .NET ...

Use PowerShell to Work with the .NET Framework Service Classes

  Summary: Learn how to use Windows PowerShell to work with the .NET Framework service controller classes.   (image) Hey, Scripting Guy! I am curious about the .NET Framework. I tried to use a .NET Framework class in a Windows PowerShell script recently, and the script seems to run erratically. Because I am in the middle of ...

Using Windows PowerShell to Determine Service Launch Order

Summary: The Microsoft Scripting Guys show how to determine service launch order by using Windows PowerShell and WMI in this helpful step-by-step article.   (image) Hey, Scripting Guy! I need to find out the order in which services start on my computer. To properly shut down a computer, the services should stop in reverse order that ...

Use Windows PowerShell to Display Service Dependencies

Summary: Use Windows PowerShell to display service dependencies on Windows for troubleshooting shutdown problems in Windows 7.   (image) Hey, Scripting Guy! I have a problem on my Windows 7 PC. It hangs on shutdown from time to time. I have done some searches on the Internet, and it seems other people have reported similar problems. ...

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