O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing the Power Scheme

There are a number of changes that can be made to the power scheme used by Windows Vista or Windows Server 2008. These settings commonly take into account whether the computer is running on power or on battery. If the computer is running on a battery, conservation often becomes a concern. However, this is not always the case. In some circumstances, performance of the computer is the most pressing factor; for example, if you know electricity will be restored to the computer within a specific amount of time. The SetPowerConfig.ps1 script provides the ability to configure power settings for the monitor, disk, sleep, and hibernate features on both the battery and power. You can create a custom power plan by using the power ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required