To disable the capslock key, add the following registry value. (reboot required to take effect)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,3a,00,00,00,00,00
-----------------------------------------------------
To turn capslock on, use the following two lines in a .vbs login or startup script:
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{CAPSLOCK}"
Keith