Turn off the monitor
CopyCode The Code is as follows: @ echo off
: By SKB
Powercfg/change home/Desk/monitor-timeout-Ac 1
Exit
The minimum parameter after REM is 1, that is, 1 minute. If you do not move your computer for one 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] |/?]
Description:
This command line tool allows the Administrator to control the power settings on the system.
Parameter List:
/List,/L lists the names of existing power solutions.
/Query and/Q display the configuration of the specified power supply solution. If no name is specified, the current
The configuration of the power solution in use is displayed.
/Create,/c use the specified name to create a power supply solution. The new solution is to use the current Chinese version.
Project.
/Delete,/d Delete the power solution with the specified name.
/Setactive,/s sets the power solution with the specified name to in use.
/Change,/X Change the setting of the specified power supply scheme. Other switches specify the following changes:
/Monitor-timeout-AC <minute>
/Monitor-timeout-DC <minute>
/Disk-timeout-AC <minute>
/Disk-timeout-DC <minute>
/Standby-timeout-AC <minute>
/Standby-timeout-DC <minute>
/Hibernate-timeout-AC <minute>
/Hibernate-timeout-DC <minute>
/Processor-Throttle-AC <throttle>
/Processor-Throttle-DC <throttle>
When the system uses the AC power supply, use the AC settings. Battery power supply for the System
Use DC settings. Setting the timeout value to zero will disable the corresponding timeout function.
Supported controllers are set to none, constant, degrade, and
Adaptive.
/Export,/e exports the power solution with the specified name to a file. If no
File name. The default value is scheme. Pow. Another parameter is supported:
/File <FILENAME>
/Import,/I import the power scheme from a file with the specified name. If no file name is specified,
The default value is scheme. Pow. If a scheme with that name already exists,
The new one will replace it. Another supported parameter is:
/File <FILENAME>
/Hibernate and/h enable or disable the sleep function. Not all systems that support sleep
Timeout.
/Numerical,/N allows you to specify a power supply scheme with a digital identifier. When this switch is used,
Specify the numeric identifier of the command line power-on source file name.
This switch can be used with/query,/delete,/setactive,/change,
Use the/export and/import commands together.
/Globalpowerflag,/G {on | off} turn on/off a global power mark.
Valid flag (used after "/option") is:
Batteryicon: enables/disables the battery indicator in the system taskbar.
Icon.
Multibattery: enable/disable multi-battery display in the system Power Supply table.
Resumepassword: the password is prompted when the system is restored.
Wakeonring: Enables or disables the wake-up function.
Videodim: enable/disable video in battery
Support for dimmed display.
/Availablesleepstates,/a reports the available sleep status on the system. Try to report sleep
The reason the status is unavailable.
/Batteryalarm,/B {LOW | critical} displays or configures the specified Battery warning. Use this
You do not need to switch to display the current settings.
You can specify the following switches:
/Activate <on | off>
Enable or disable warning.
/Level <percentage (0-100)>
A warning is triggered when the voltage reaches this percentage.
/Text <on | off>
Enable or disable notifications.
/Sound <on | off>
Enable or disable audible notifications.
/Action <none | Shutdown | hibernate | standby>
Specifies the action taken when an alert is triggered. Not all operations are always
Available.
/Forceaction <on | off>
Even if Program The stop response is also forced to standby or shut down.
/Program <on | off>
Specifies whether the system runs a program when an alarm is triggered. Use this option
The output can be configured with schtasks.exe/change.
The Task Name of the program.
/Help ,/? Displays the command line parameter information.
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
powercfg/query number/numerical
powercfg/globalpowerflag on/option batteryicon
powercfg/availablesleepstates
powercfg/batteryalarm low
powercfg/batteryalarm critical/activate on/Level 6/Action hibernate