Link to home
Start Free TrialLog in
Avatar of hullc65203
hullc65203

asked on

how to modify dword registry entry in logon script

What's the synax to change a dword registry entry in a login script? I've got:

[HKEY_LOCAL_MACHINE...}
"State"=

If I use 256 it doesn't change the entry. If I use "256" it replaces the key with a REG_SZ key.

I need it to be a hex entry of 256

Thanks!
Avatar of Bartender_1
Bartender_1
Flag of Canada image

change the entry manually on one system, then save that key to a .reg file.
then create a batch file with this in it:

reg import <filename.reg>

If you need the reg command, you can download  one from here:
http://www.petri.co.il/download_free_reskit_tools.htm

If you need the hexidecimal for "256" then you need to use: 00000100

Hope this helps!

:o)

Bartender_1
ASKER CERTIFIED SOLUTION
Avatar of Bartender_1
Bartender_1
Flag of Canada 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 hullc65203
hullc65203

ASKER

That did the trick. Thanks!
Thanks for the points!

I'm glad I was able to assist you.

Cheers!

:o)

Bartender_1