Skip to content

toggle-caps-lock

Toggle Caps Lock

#Requires -Version 5.1

try {
	$wsh = New-Object -ComObject WScript.Shell
	$wsh.SendKeys('{CAPSLOCK}')
	exit 0
} catch {
throw
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.