Skip to content

Instantly share code, notes, and snippets.

@junex
Last active January 18, 2019 16:27
Show Gist options
  • Save junex/02e1f99a5ef88635bc924cb614c30fa5 to your computer and use it in GitHub Desktop.
Save junex/02e1f99a5ef88635bc924cb614c30fa5 to your computer and use it in GitHub Desktop.
powercfg /devicequery wake_armed
powercfg /deviceenablewake "Logitech HID-compliant Gaming Mouse G90/G100/G100s (001)"
powercfg /devicedisablewake "Logitech HID-compliant Gaming Mouse G90/G100/G100s (001)"
powercfg /devicequery wake_from_S1_supported
nircmd standby
修改休眠文件位置
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup\Power Management
休眠文件大小
powercfg hibernate size 40
关闭休眠
powercfg -h off
powershell 符号连接
New-Item -Path "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\myhotkey.ahk" -ItemType SymbolicLink -Value D:\Document\fun\autohotkey\myhotkey.ahk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment