Solved

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

Posted on 2007-11-16
3
2,760 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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