Turn off the monitor
@echo off
:: by SKB
PowerCfg /change Home / Office Desk /monitor-timeout-ac 1
exit
The minimum parameter after rem is 1, that is, 1 minute. If you don’t move the computer for 1 minute, you will see the effect.
POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name |
/SETACTIVE name | /CHANGE name settings |
/HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] |
/IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag |
/BATTERYALARM {LOW|CRITICAL} [settings] | /?]
describe:
This command line tool allows administrators to control power settings on the system.
Parameter list:
/LIST, /L Lists the name of the power scheme.
/QUERY, /Q Displays the configuration of the specified power scheme. If no name is specified, the current
The configuration of the power scheme in use will be displayed.
/CREATE, /C Create a power scheme with the specified name. The new plan is to use the current Chinese side
The properties of the case are created.
/DELETE, /D Delete the power scheme with the specified name.
/SETACTIVE, /S Set the power scheme with the specified name to be in use.
/CHANGE, /X Change the settings for the specified power scheme. Other switches specify the following changes:
/monitor-timeout-ac <min>
/monitor-timeout-dc <min>
/disk-timeout-ac <min>
/disk-timeout-dc <min>
/standby-timeout-ac <minute>
/standby-timeout-dc <minute>
/hibernate-timeout-ac <min>
/hibernate-timeout-dc <min>
/processor-throttle-ac <throttle>
/processor-throttle-dc <throttle>
When the system uses AC power, use AC settings. The system uses battery power
When using DC settings. Setting the timeout to zero disables the corresponding timeout function.
Supported controller settings are NONE, CONSTANT, DEGRADE and
ADAPTIVE。
/EXPORT, /E Export the power scheme with the specified name to a file. If not specified
The default value is . Another parameter is supported:
/FILE <filename>
/IMPORT, /I Import power scheme from a file with the specified name. If no file name is specified,
The default value is . If the scheme with that name already exists,
The new one will replace it. Another supported parameter is:
/FILE <filename>
/HIBERNATE, /H Turns the hibernation function on or off. Not all systems that support hibernation support
time out.
/NUMERICAL, /N Allows the use of a digital identifier to specify the power scheme used. When using this switch,
Where the power scheme name is on the command line, specify its numeric identifier.
This switch can be followed by /QUERY, /DELETE, /SETACTIVE, /CHANGE,
Use /EXPORT and /IMPORT commands together.
/GLOBALPOWERFLAG, /G {ON|OFF} Turn on/off a global power flag.
Valid flags (used after "/OPTION") are:
BATTERYICON: Turn the battery indicator on/off in the system taskbar
icon.
MULTIBATTERY: Turn on/off the multi-battery display in the system power meter.
RESUMEPASSWORD: When restoring the system, prompt for password.
WAKEONRING: Turn ring wake-up support on/off.
VIDEODIM: Turn on/off the battery to make video
Show darkened support.
/AVAILABLESLEEPSTATES, /A Reports the available sleep state on the system. Try reporting sleep
Reason for the status unavailable.
/BATTERYALARM, /B {LOW|CRITICAL} Displays or configures the specified battery warning. Use this
The current setting will be displayed without switches when Options.
The following switches can be specified:
/activate <on|off>
Enable or disable warnings.
/level <percentage (0 - 100)>
A warning sounds when the voltage reaches this percentage.
/text <on|off>
Turn notifications on or off.
/sound <on|off>
Turn on or off audible notifications.
/action <none|shutdown|hibernate|standby>
Specifies the action to take when the alarm is ringed. Not all operations are always
Available.
/forceaction <on|off>
Even if the program stops responding, it will force standby or shut down.
/program <on|off>
Specifies whether the system runs a program when the alarm is ringing. Use this option
When the output is configured with /change
The task name of the program.
/HELP, /? Displays information about command line parameters.
Example:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate
Copy the codeThe code is as follows:
@echo off
:: by SKB
PowerCfg /change Home / Office Desk /monitor-timeout-ac 1
exit
The minimum parameter after rem is 1, that is, 1 minute. If you don’t move the computer for 1 minute, you will see the effect.
POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name |
/SETACTIVE name | /CHANGE name settings |
/HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] |
/IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag |
/BATTERYALARM {LOW|CRITICAL} [settings] | /?]
describe:
This command line tool allows administrators to control power settings on the system.
Parameter list:
/LIST, /L Lists the name of the power scheme.
/QUERY, /Q Displays the configuration of the specified power scheme. If no name is specified, the current
The configuration of the power scheme in use will be displayed.
/CREATE, /C Create a power scheme with the specified name. The new plan is to use the current Chinese side
The properties of the case are created.
/DELETE, /D Delete the power scheme with the specified name.
/SETACTIVE, /S Set the power scheme with the specified name to be in use.
/CHANGE, /X Change the settings for the specified power scheme. Other switches specify the following changes:
/monitor-timeout-ac <min>
/monitor-timeout-dc <min>
/disk-timeout-ac <min>
/disk-timeout-dc <min>
/standby-timeout-ac <minute>
/standby-timeout-dc <minute>
/hibernate-timeout-ac <min>
/hibernate-timeout-dc <min>
/processor-throttle-ac <throttle>
/processor-throttle-dc <throttle>
When the system uses AC power, use AC settings. The system uses battery power
When using DC settings. Setting the timeout to zero disables the corresponding timeout function.
Supported controller settings are NONE, CONSTANT, DEGRADE and
ADAPTIVE。
/EXPORT, /E Export the power scheme with the specified name to a file. If not specified
The default value is . Another parameter is supported:
/FILE <filename>
/IMPORT, /I Import power scheme from a file with the specified name. If no file name is specified,
The default value is . If the scheme with that name already exists,
The new one will replace it. Another supported parameter is:
/FILE <filename>
/HIBERNATE, /H Turns the hibernation function on or off. Not all systems that support hibernation support
time out.
/NUMERICAL, /N Allows the use of a digital identifier to specify the power scheme used. When using this switch,
Where the power scheme name is on the command line, specify its numeric identifier.
This switch can be followed by /QUERY, /DELETE, /SETACTIVE, /CHANGE,
Use /EXPORT and /IMPORT commands together.
/GLOBALPOWERFLAG, /G {ON|OFF} Turn on/off a global power flag.
Valid flags (used after "/OPTION") are:
BATTERYICON: Turn the battery indicator on/off in the system taskbar
icon.
MULTIBATTERY: Turn on/off the multi-battery display in the system power meter.
RESUMEPASSWORD: When restoring the system, prompt for password.
WAKEONRING: Turn ring wake-up support on/off.
VIDEODIM: Turn on/off the battery to make video
Show darkened support.
/AVAILABLESLEEPSTATES, /A Reports the available sleep state on the system. Try reporting sleep
Reason for the status unavailable.
/BATTERYALARM, /B {LOW|CRITICAL} Displays or configures the specified battery warning. Use this
The current setting will be displayed without switches when Options.
The following switches can be specified:
/activate <on|off>
Enable or disable warnings.
/level <percentage (0 - 100)>
A warning sounds when the voltage reaches this percentage.
/text <on|off>
Turn notifications on or off.
/sound <on|off>
Turn on or off audible notifications.
/action <none|shutdown|hibernate|standby>
Specifies the action to take when the alarm is ringed. Not all operations are always
Available.
/forceaction <on|off>
Even if the program stops responding, it will force standby or shut down.
/program <on|off>
Specifies whether the system runs a program when the alarm is ringing. Use this option
When the output is configured with /change
The task name of the program.
/HELP, /? Displays information about command line parameters.
Example:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate