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

Hey, Scripting Guy! Can I Use the Registry to Retrieve a List of the Most Recently Run Programs?

(image)   (image) Hey, Scripting Guy! When I work on a computer, I often run many commands. I generally use Run from the Start menu to launch these programs. When I am finished, I use a script I copied from the Scripting Guys archive to display all the commands that I ran and then I save them in a Notepad file. However, that script...

Hey, Scripting Guy! How Can I Parse My Firewall Log File to See What Kind of Packets Are Being Sent?

(image) Hey, Scripting Guy! I would like to parse the firewall log on my computer and find out the kinds of packets that are going out. You know, how many Web page packets, how many DNS lookups, how many pings. That kind of stuff. I figure that I can look at these logs and pick up diagnostic information. For example, if I see a bunch of DNS ...