Skip to content

Instantly share code, notes, and snippets.

@kimushu
Created May 14, 2017 03:21
Show Gist options
  • Save kimushu/90596b82b06c2c42c84ac0a383fba021 to your computer and use it in GitHub Desktop.
Save kimushu/90596b82b06c2c42c84ac0a383fba021 to your computer and use it in GitHub Desktop.
Warn if Hiberboot(高速スタートアップ) is enabled
#NoEnv
;--------------------------------------------------------------------------------
; システム起動時チェック
;
StartupCheck(){
RegRead,x,HKEY_LOCAL_MACHINE,SYSTEM\ControlSet001\Control\Session Manager\Power,HiberbootEnabled
If (x != 0)
{
TrayTip,高速スタートアップ設定監視,高速スタートアップが有効になっています,,2+16
}
Else
{
;TrayTip,高速スタートアップ設定監視,高速スタートアップが無効になっています,,1+16
}
}
StartupCheck()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment