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

Managing Desktop Power Settings

There are many components that can be stored in a power configuration policy. In this section, let's examine how you can retrieve the power policy for a computer. The power plan settings are shown in Figure 9-7.

In the ReportPowerConfig.ps1 script, you'll report on the existing power configuration settings. The script supports several different switches, and can supply the following information:

  • All power configuration settings

  • Current power configuration setting

  • Available sleep states

  • Last wake event

  • All devices on the current computer

  • All devices, and their configuration (including if they support sleep)

  • All devices that are currently configured to wake the computer

  • All devices that can be user-configured to wake the computer ...

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