Last active
March 1, 2019 21:19
-
-
Save howellcc/6ac182bb3f16e1b78edb7a40e8c985ed to your computer and use it in GitHub Desktop.
Powershell script for turning Numlock on when its off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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