Scripting Blog [archived]

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

Use PowerShell and WMI to Find Wireless Keyboard & Mouse

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to find a wireless keyboard or mouse attached to a system. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday, we had a great time at the Windows PowerShell user group meeting at the Microsoft Office in Munich (actually just outside of Munich). It was...

PowerTip: Use PowerShell to Determine if a Laptop Is Running on Battery

Summary: Learn how to use Windows PowerShell to determine if a laptop is running on battery. (image)  How can I use Windows PowerShell to determine if my laptop is running on battery? (image) Use the Win32_Battery WMI class and look for a BatteryStatus of 1—this means the battery is discharging (in use). Here is an ...

Use PowerShell to Detect Power State and to Set Power Plan

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to detect the power state on his laptop and to set the appropriate power plan. Microsoft Scripting Guy, Ed Wilson, is here. This evening in Oslo, Norway, the Scripting Wife and I are attending the Microsoft Technology User Group meeting. The meeting runs from 18:...

Weekend Scripter: Discover the Power of WMI and PowerShell

Summary: Guest blogger, Brian Wilhite, talks about using Windows PowerShell and WMI in the enterprise. Microsoft Scripting Guy, Ed Wilson, is here. Brian Wilhite is with us today to share a preview of his presentation for Windows PowerShell Saturday, whiche is coming to you in two weeks on September 15 in Charlotte. NC. (image) If you’...