Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2840
  • Last Modified:

How to write Binary Data (REG_BINARY) into a registry key using a vbs script

I am trying to disable the scroll lock key by setting a registry key. I have the key exported as a .reg file but I would like to set this from my login script which is a .vbs script.
Here is the .reg file..
[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,45,00,00,00,46,00,00,00,00,00

How can I write this to the registry using the following format:
WshShell.RegWrite "HKEY_USERS\.DEFAULT\Control Panel\Keyboard\ScanCode Map","DATA_HERE","REG_BINARY"
0
a016691
Asked:
a016691
  • 2
1 Solution
 
a016691Author Commented:
I know how to write a string and dword value using vbscript, the question was how to write a binary value..

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now