Link to home
Start Free TrialLog in
Avatar of katievegas1127
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\CurrentVersion\Explorer\StuckRects2

to overwrite the existing setting with :
"Settings"=hex:28,00,00,00,ff,ff,ff,ff,03,00,00,00,03,00,00,00,6b,00,00,00,22,\
  00,00,00,00,00,00,00,de,03,00,00,00,05,00,00,00,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:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")

'strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"

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
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of katievegas1127
katievegas1127

ASKER

Thank you!