Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2007-11-16
3
2,731 Views
Last Modified: 2008-02-01
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
Comment
Question by:a016691
  • 2
3 Comments
 
LVL 14

Expert Comment

by:bmsjeff
ID: 20298795
0
 
LVL 1

Author Comment

by:a016691
ID: 20298992
I know how to write a string and dword value using vbscript, the question was how to write a binary value..

0
 
LVL 14

Accepted Solution

by:
bmsjeff earned 500 total points
ID: 20299055
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question