PowerTip: Find All Modules on a System by Using PowerShell

Summary: Learn how to find all modules on a system by using Windows PowerShell.  How can I find all of the modules on my system by using Windows PowerShell?  Use the Get-Command cmdlet and specify all of the modules. Pipe the results to the Group-Object cmdlet, and sort the results to make it easier to read, as shown here. Get-Command… Read more

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)…. Read more

PowerTip: Start All Virtual Machines on Remote Servers Running Hyper-V

Summary: See how to start all virtual machines on remote servers running Hyper-V by using Windows PowerShell.  How can I start all virtual machines on several remote servers running Hyper-V by using Windows PowerShell?  Use the pattern Get-VM | Start-VM but with the Get-VM cmdlet to specify an array of servers running Hyper-V, as shown here. get-vm -Computer… Read more

The Impromptu PowerShell Summit in Zurich

Summary: I talk about meeting up with MOW, Fermin, and other friends in Zurich. Well, the Scripting Wife and I arrived in Zurich following our excursion to CERN. It was a beautiful train trip, and I was able to get a decent amount of work completed on my new Windows PowerShell 3.0 book. Our hotel… Read more

Use PowerShell to Set the Power Plan on Networked Servers

Summary: Use a couple of simple Windows PowerShell commands to report the power plan settings on servers as well as setting them. Microsoft Scripting Guy, Ed Wilson, is here. Well, today the Scripting Wife and I travel to The Netherlands for the sold-out Dutch Windows PowerShell user group meeting. This all-day user group meeting is… Read more

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.  How can I use Windows PowerShell to determine if my laptop is running on battery? Use the Win32_Battery WMI class and look for a BatteryStatus of 1—this means the battery is discharging (in use). Here is an example using either the Get-WmiObject or the Get-CimInstance cmdlets…. Read more

Dortmund, Geneva, Zurich

Summary: Our trip now takes us from the Netherlands to Dortmund to Geneva and then on to Zurich. Well, the Scripting Wife and I had a wonderful time at the first-ever Dutch PowerShell user group. I delivered two presentations and made dozens of new contacts and friends. The following day, Jeff Wouters took Teresa and… Read more

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… Read more

PowerTip: Use PowerShell to Easily View Contents of VBScript

Summary:  Learn how to use Windows PowerShell to view contents of a VBScript file.  How can I use Windows PowerShell to easily view the contents of a VBScript file, such as SLMGR.VBS? I do not know the path to the file.  You do not need to know the path to the file. Use the Windows PowerShell Get-Command cmdlet… Read more

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… Read more