Solved

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

Posted on 2007-11-16
3
2,741 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
[X]
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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to reinstall MS Office 2003 Standard Edition and need an ISO image or something.. 12 2,135
User laptop information 6 144
XP won't boot 27 157
Toshiba Laptop (WIN XP) will not start 6 86
Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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