[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2904
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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