Script needs to reboot after execution
Run as System User
#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
import _winreg
import os
from _winreg import *
try:
handle = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,r"SYSTEM\CurrentControlSet\Control\Keyboard Layout",0,_winreg.KEY_ALL_ACCESS)
if handle:
_winreg.DeleteValue(handle, 'Scancode Map')
print'Keys Removed Successfully'
except:
print "No Such Keys Exist!!"
Comments