Powercfg Command in Windows Server 2008

This article describes the command Powercfg in Windows Server 2008 operating system and syntax related with it.
  • 1517

Introduction

Powercfg command Windows Server 2008 is used to control power settings and configure computers to default to hibernate or to standby modes. Syntax used for Powercfg command is given below.

Syntax

powercfg [/l[ist]] [/q[uery] [<Scheme_GUID>] [<Sub_GUID>]] ] [/x <setting> <value>] [/changename <GUID> <name> [/<scheme_description>]] [/duplicatescheme <GUID> [<DestinationGUID>]] [/deletesetting <SUB_GUID> <Setting_GUID>] [/s[etactive] <Scheme_GUID>] [/getactivescheme] [/setacvalueindex <Scheme_GUID> <Sub_GUID> <Setting_GUID> <SettingIndex>] [/setdcvalueindex <Scheme_GUID> <Sub_GUID> <Setting_GUID> <SettingIndex>] [/h[ibernate] [on | off]] [/a[vailablesleepstates]] [/devicequery <query_flags>] [/deviceenablewake <devicename>] [/devicedisablewake <devicename>] [/import <filename> [<GUID>]] [/export <filename> [<GUID>]] [/lastwake] [/aliases] [/setsecuritydescriptor [<GUID> | <Action>] <SDDL>] [/getsecuritydescriptor [<GUID> | <Action>]] [/requests] [/requestsoverride <Caller_type> <Name> <Request>] [/energy [/output <filename>] [/XML] [/duration <seconds>] [/trace [/d <fileapth>]] [/waketimers] [/?]

Parameters For Powercfg

Parameter Description
/list /l Lists all power schemes in the current user's environment.
/q[uery] [<Scheme_GUID>] [<Sub_GUID>] Shows the contents of the specified power scheme.
<Scheme_GUID> Defines the GUID of the power scheme to show
<Sub_GUID> Defines the GUID of the subgroup to display.
/change <setting> <value> /x <setting> <value> Modifies a setting value in the current power scheme.
/changename <GUID> <name> [<scheme_description>] Modifies the name of a power scheme and, optionally, the scheme description.
/duplicatescheme <GUID> [<DestinationGUID>] Duplicates the specified power scheme.
/d[elete] <GUID> Deletes the power scheme with the specified GUID.
/deletesetting <Sub_GUID> <Setting_GUID> Deletes a power setting.
/s[etactive] <Scheme_GUID> Makes the specified power scheme active on the computer.
/getactivescheme Retrieves the currently active power scheme.
/setacvalueindex <Scheme_GUID> <Sub_GUID> <Setting_GUID> <SettingIndex> Sets a value associated with a specified power setting while the computer is powered by AC power.
/setdcvalueindex <Scheme_GUID> <Sub_GUID> <Setting_GUID> <SettingIndex> Sets a value associated with a specified power setting while the computer is powered by DC power.
/h[ibernate] [on|off] Enables or disables the hibernate feature.
/a[vailablesleepstates] Reports the sleep states available on the computer.
/devicequery <query_flags> Returns a list of devices that meet the specified criteria.
/deviceenablewake <devicename> Enables the device to wake the computer from a sleep state.
/devicedisablewake <devicename> Disables the device from waking the computer from a sleep state.
/import <filename> [<GUID>] Imports all power settings from the specified file.
/export <filename> [<GUID>] Exports a power scheme, represented by the specified GUID, to the specified file.
/lastwake Reports information about the event that woke the computer from the last sleep transition.
/aliases Shows all aliases and their corresponding GUIDs.
/setsecruitydescriptor [<GUID>|<Action>] <SDDL> Sets a security descriptor associated with a specified power setting, power scheme, or action.
/getsecuritydescriptor [<GUID>|<Action>] Gets a security descriptor associated with a specified power setting, power scheme, or action.
/requests Enumerate application and driver Power Requests.
/requestsoverride <Caller_type> <Name> <Request> Sets a Power Request override for a particular Process, Service, or Driver.
/energy Analyzes the system for common energy-efficiency and battery life problems.
/waketimers Enumerates the active wake timers.
/? Shows help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.