Creating .reg files - File syntax

dragon2309

P.I Dragon
Hey all, hoping some smart bod can help me out on this one...

Making a .reg file to add a key to stop MSN Messenger being run on that account... This is what I've got so far in my reg file, it works and to my knowledge it is correct, howerver, there is one problem, detailed below

Here's the code:
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Messenger\Client]
"PreventRun"="REG_DWORD:0"

Basically, it wont create a DWORD value at all, it will constantly revert to the default REG_SZ value, which is a string, thats not what i need and i doubt it will work int he same way...No matter how i structure my reg file, it always comes out in the same wrong way.... is there something I'm missing here...???

dragon2309 :)
 
Try this:
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Messenger\Client]
"PreventRun"=DWORD:0
 
Ok, i just tried that one, and this time it didnt create an attribute or a value at all, it created the \messenger\client keys but it didnt even put in a REG_SZ value, nothing was made at all

thanks, dragon

*EDIT* - Not to worry, sorted now, DWORD values have to be entered in HEX and not ASCII (zero fill to 8 characters basically) 00000001 = 1 and 00000000 = 0
 
Last edited:
Back
Top