Skip to content

Instantly share code, notes, and snippets.

@howellcc
Last active March 1, 2019 21:19
Show Gist options
  • Save howellcc/6ac182bb3f16e1b78edb7a40e8c985ed to your computer and use it in GitHub Desktop.
Save howellcc/6ac182bb3f16e1b78edb7a40e8c985ed to your computer and use it in GitHub Desktop.
Powershell script for turning Numlock on when its off
#I added this to task scheduler
#Triggers: on Login and on unlock
#action: Powershell.exe
#action Arguments: -ExecutionPolicy Bypass {PATH}\NumLockFix.ps1
if(-not [console]::NumberLock){
$w = New-Object -ComObject WScript.Shell;
$w.SendKeys('{NUMLOCK}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment