Batch File Caps Lock Num Lock 🚀

powershell.exe -Command "$wsh = New-Object -ComObject WScript.Shell; $wsh.SendKeys('{CAPSLOCK}')"

You can call a one-line PowerShell command from within your batch file to toggle or force a specific state. Batch File Caps Lock Num Lock

Can I turn Caps on/of from a batch file in Win 7? - Super User powershell