Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell and WMI or CIM to View and to Set Power Plans

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell and WMI or CIM cmdlets to view and to set power plans on his laptop. Microsoft Scripting Guy, Ed Wilson, is here. Tomorrow, the Scripting Wife and I are at the Microsoft Technology User Group in Oslo, Norway. I will be talking about using Windows PowerShell 3...

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

Troubleshooting an Active Directory HTA   Hey, Scripting Guy! I have created an HTML Application (HTA) to prompt a support person for their administrative ID and password and a computer name that they wish to delete from Active Directory. The script uses the alternate credentials to find the computer object alright, but does not use the ...

How Can I Start a Process and Then Log the User Off When That Process Ends?

Hey, Scripting Guy! How can I write a script that starts a process, waits until that process ends, and then logs the user off the computer?-- AG Hey, AG. You know, the Scripting Guy who writes this column is never one to brag, mainly because he never has much of anything to brag about. In addition tot that, however, he is a humble and ...

How Can I Configure the System Failure Options on a Windows Server 2003 Computer?

Hey, Scripting Guy! How can I configure the system failure options on a Windows Server 2003 computer? I’d like to configure the machine to do a small memory dump, and disable both the sending of an administrative alert and the automatic reboot.-- JS Hey, JS. You know, the Scripting Guys happen to all be in a good mood today, so we’re ...

How Can I List All the Items in the Run Key in the Registry?

Hey, Scripting Guy! How can I list all the items in the Run key in the registry?-- JW Hey, JW. How can you list all the items in the Run key in the registry? Well, to be honest, we’re not going to tell you. Nope, sorry. Not because we don’t like you, but because we think we have a better answer for you. (If we’re wrong, well, let’s ...

Feedback usabilla icon