Scripting Blog [archived]

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

Combine PowerShell Modules to Avoid Writing Scripts

Summary: Learn how to combine Windows PowerShell modules to save time and reduce scripting overhead.   Microsoft Scripting Guy Ed Wilson here. One of the cool things about Windows PowerShell modules is that they are easy to share. In addition, because the code is packaged as a module, one automatically knows what to do with the module, ...

Scripting Wife Uses PowerShell to Shut Down Computers

Summary: The Scripting Wife learns how to use Windows PowerShell to shut down remote computers. Microsoft Scripting Guy, Ed Wilson, here. It is raining outside and every so often a window-shaking thunder clap erupts outside, jarring the teeth of everyone inside our house in Charlotte, North Carolina. Because I know that the Scripting Wife ...

Using Windows PowerShell to Determine if a Laptop Is on Battery Power

  Microsoft Scripting Guy Ed Wilson here. It is time for another road trip. This time we are heading to Asheville, North Carolina for the Blue Ridge Classic Horse Show. Somewhere deep in my Scripting Guy lineage is an association with Kentucky, which is considered a horse state. Horse shows are really cool. My significant other and I went...

Hey, Scripting Guy! Weekend Scripter: How Can I Use WMI to Detect Laptops?

(image) Microsoft Scripting Guy Ed Wilson here. With the 2010 Scripting Games over, I have a bit of extra time on the weekends. I was catching up on reading some of my favorite blogs, such as the WMI team blog, when I ran across a post that reminded me of a question I used to be asked when I was teaching my WMI class. I was often asked about ...

Hey, Scripting Guy! How Can I Use WMI to Set the Screen Saver Timeout Value on Workstations?

(image)     (image) Hey Scripting Guy! I have been trying to set the screen saver time out value on my workstations by using WMI. It is not working. Can you help me get WMI working?-- HR (image) Hello HR, Microsoft Scripting Guy Ed Wilson here. My teapot is empty. I was getting ready to head downstairs to fix me a ...