katievegas1127
asked on
Script help for binary reg key change
i need to script a change to reg key:
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Explor er\StuckRe cts2
to overwrite the existing setting with :
"Settings"=hex:28,00,00,00 ,ff,ff,ff, ff,03,00,0 0,00,03,00 ,00,00,6b, 00,00,00,2 2,\
00,00,00,00,00,00,00,de,03 ,00,00,00, 05,00,00,0 0,04,00,00
I don't know how to do this... i came up with :
Option Explicit
On Error Resume Next
'Const HKCU = &H80000001 'HKEY_CURRENT_USER
strComputer = "."
Set StdOut = WScript.StdOut
'load the registry
Set oReg=GetObject("winmgmts:{ impersonat ionLevel=i mpersonate }!\\" &_
strComputer & "\root\default:StdRegProv" )
'strKeyPath = "Software\Microsoft\Window s\CurrentV ersion\Exp lorer\Stuc kRects2"
But I don't knwo where to go from here or if this will even work...
If anyone can help me, I'd really appreciate it.
Thanks,
KV
HKEY_CURRENT_USER\Software
to overwrite the existing setting with :
"Settings"=hex:28,00,00,00
00,00,00,00,00,00,00,de,03
I don't know how to do this... i came up with :
Option Explicit
On Error Resume Next
'Const HKCU = &H80000001 'HKEY_CURRENT_USER
strComputer = "."
Set StdOut = WScript.StdOut
'load the registry
Set oReg=GetObject("winmgmts:{
strComputer & "\root\default:StdRegProv"
'strKeyPath = "Software\Microsoft\Window
But I don't knwo where to go from here or if this will even work...
If anyone can help me, I'd really appreciate it.
Thanks,
KV
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER