krutoimage.blogg.se

How to delete power plans
How to delete power plans







how to delete power plans how to delete power plans

Either one works and using one as opposed to the other, in this case, is a simple matter of substituting one name for the other. To enumerate the available power plans on the laptop, I can use either Get-WmiObject, or, in Windows PowerShell 3.0, I can use the Get-CIMInstance class. Because this is not the default Root\Cimv2 namespace, this means that any script or code to query from this class must include the Root\Cimv2\Power namespace in the code. This WMI class resides in the Root\Cimv2\Power WMI namespace. Windows 7 introduced the Win32_PowerPlan WMI class. But first, I need to spend a bit of time talking about WMI, CIM, and the Win32_PowerPlan WMI class. I think this calls for a quick Windows PowerShell script. So, when plugged into electricity, I want to run the laptop on full power when running on battery, I want to run the laptop on maximum conserve power. When I am on a train, or in a plane, I generally am running on battery (although most of the trains we have been riding on also have power at the seat). In addition to being a great way to travel, it provides stunning views, and a comfortable compartment within which to write Hey, Scripting Guy! Blog posts.Īll these trains, user group presentations, and more trains, got me to thinking: I like to have my laptop running full power when making a user group presentation-of course, I am always plugged in to power while doing so. We are taking the beautiful train from Stockholm to Oslo. Last night we were in Stockholm with the Stockholm PowerShell User Group, and today is a travel day. I will be talking about using Windows PowerShell 3.0 to manage a remote Windows 8 workstation. Tomorrow, the Scripting Wife and I are at the Microsoft Technology User Group in Oslo, Norway. Microsoft Scripting Guy, Ed Wilson, is here. 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.









How to delete power plans