Scripting Blog [archived]

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

Get Windows Power Plan Settings on Your Computer by Using PowerShell

  Summary: Use Windows PowerShell to retrieve the power plan settings for your computer. The Microsoft Scripting Guys show you how.   (image) Hey, Scripting Guy! I need to have a way to easily retrieve the power plan settings for the active power plan on my computer. I would like to have an easy to read display of the setting name, ...

Find Active Power Plan on Remote Servers by Using PowerShell

Summary: Find the active power plan on remote servers by using Windows PowerShell and WMI information. The Microsoft Scripting Guys show you how to do it.   (image) Hey, Scripting Guy! I have a real problem. It seems that both Windows 7 and Windows Server 2008 R2 install with the “balanced” power plan. A balanced power plan ...

Customize Colors and Fonts in the Windows PowerShell ISE

Summary: Customize colors and fonts in the Windows PowerShell ISE. The Microsoft Scripting Guys show you how to script the script editor. How meta!   Microsoft Scripting Guy Ed Wilson here. In just about two weeks it will be my birthday, and I have begun my mission to figure out what the female carbon based life form that inhabits my ...

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