Copy and paste the below code in notepad, =========================================================== ‘Disable Print Screen Function const HKEY_LOCAL_MACHINE = &H80000002 strKeyPath = “SYSTEM\CurrentControlSet\Control\Keyboard Layout” strComputer = “.” BinaryValueName = “Scancode Map” iValues = Array(&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H03,&H00,&H00,&H00,&H00,&H00,&H37,&He0,&H00,&H00,&H54,&H00,&H00,&H00,&H00,&H00) Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” & strComputer & “\root\default:StdRegProv”) ps=oReg.SetBinaryValue(HKEY_LOCAL_MACHINE,strKeyPath,BinaryValueName,iValues) =========================================================== Then save file as .vbs file. after runing the script , you need to reboot the machine to take effect.
-
Recent Posts
-
Archives