Turn off the monitor
Copy Code code as follows:
@echo off
:: By SKB
Powercfg/change Home/Work desk/monitor-timeout-ac 1
Exit
The minimum parameter for REM is 1, which is 1 minutes, and if you don't move your computer for 1 minutes, you'll 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 existing 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 creates a power scheme with the specified name. The new plan is to use the current Chinese
The property of the case is created.
/delete,/d deletes the power scheme with the specified name.
/setactive,/S sets 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 < min >
/STANDBY-TIMEOUT-DC < min >
/hibernate-timeout-ac < min >
/HIBERNATE-TIMEOUT-DC < min >
/processor-throttle-ac <throttle>
/PROCESSOR-THROTTLE-DC <throttle>
AC settings are used when the system uses AC power. The system uses battery power
, you use the DC settings. Setting the timeout to zero disables the appropriate timeout function.
The supported controllers are set to NONE, CONSTANT, degrade, and
Adaptive.
/export,/e Exports the power scheme with the specified name to a file. If you do not specify
The file name, and the default value is SCHEME. POW. Another parameter is supported:
/file <filename>
/import,/I imports the power scheme from a file with the specified name. If you do not specify a filename,
The default value is SCHEME. POW. If a scheme with that name already exists,
The new will replace it. The other supported parameters are:
/file <filename>
/hibernate,/h turn on or off the Hibernate feature. Not all hibernation-enabled systems support hibernation
Timeout.
/numerical,/n allows you to specify a power scheme to use with a numeric identifier. When using this switch,
Specifies its numeric identifier where the power scheme name is on the command line.
This switch can be used with/query,/delete,/setactive,/change,
/export and/import commands are used together.
/globalpowerflag,/g {on| OFF} turns on/off a global power flag.
Valid flags (used after "/option") are:
Batteryicon: Turn the battery indicator on/off in the system tray
Icon.
Multibattery: Turn on/off multiple battery display on system power meter.
Resumepassword: Prompts for a password when restoring the system.
Wakeonring: Turn on/off Bell Wakeup support.
Videodim: On battery charge on/off make video
Displays dimmed support.
/availablesleepstates/A reports on the hibernation status available on the system. Try to report hibernation
The reason the status is not available.
/batteryalarm,/b {low| CRITICAL} Displays or configures the specified battery warning. Use this
option, the current setting is displayed without a switch.
You can specify the following switches:
/activate <on|off>
Enable or disable warnings.
/level <percentage (0-100) >
A warning is sounded 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 ringing the alarm bell. Not all operations are always
Available.
/forceaction <on|off>
Force Standby or shutdown even if the program stops responding.
/program <on|off>
Specifies whether the system runs a program when the alarm bell is sounded. Use this option
, the output can be configured with Schtasks.exe/change to configure this
The task name of the program.
/help,/? Displays information about command line arguments.
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