| View previous topic :: View next topic |
| Author |
Message |
Dave Heck Valued Newbie

Joined: 02 Mar 2002 Posts: 34 Location: Union, CT USA
|
Posted: Mon Aug 07, 2006 2:43 pm Post subject: Writing a "(Default)" registry value |
|
|
I apologize in advance if this had been covered before, but I cannot find this in the forum.
I need to write a registry value that is listed in the Regedit program as a (Default) value onto multiple computers. When I export the existing key on a test PC the .REG file looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\TEST]
@="This is the Default entry"
Apparently the "@" symbol in the .REG file signifies that this is a (Default) entry - when the file is merged into the Registry it comes in that way (see attached .JPG).
In VDS I have tried writing this several different ways, as listed below, but none of them work
REGISTRY WRITE,LOCAL,SOFTWARE\TEST,@CHR(64),This is the default entry
REGISTRY WRITE,LOCAL,SOFTWARE\TEST,@,This is the default entry
REGISTRY WRITE,LOCAL,SOFTWARE\TEST,(Default),This is the default entry
I can always run the Regedit.exe in silent mode to merge the working .REG file into the registry on the additional PCs, but am curious if someone has run into this and has a solution - it's not the first time this has come up for me.
Thanks for your help.
Dave
| Description: |
|
| Filesize: |
31.35 KB |
| Viewed: |
12318 Time(s) |

|
_________________ Dave Heck
dheck1961@cox.net
Union, Connecticut USA |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Aug 07, 2006 3:13 pm Post subject: |
|
|
How 'bout this:
| Code: | | REGISTRY WRITE,LOCAL,SOFTWARE\TEST,,"Greetings from Dread" |
Greetz
Dr. Dread
_________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Dave Heck Valued Newbie

Joined: 02 Mar 2002 Posts: 34 Location: Union, CT USA
|
Posted: Mon Aug 07, 2006 4:32 pm Post subject: |
|
|
You gotta be kidding me....that works - please tell me that's not in the "manual" somewhere
THANKS!!!!!!
_________________ Dave Heck
dheck1961@cox.net
Union, Connecticut USA |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Aug 07, 2006 6:32 pm Post subject: |
|
|
Uhhhhhhyeah, just leave the name blank and that will make it write to the
default value.
I think the help file mentions this, but I could be wrong. Been a while
since i've been in the help file.
-Garrett
|
|
| Back to top |
|
 |
Dave Heck Valued Newbie

Joined: 02 Mar 2002 Posts: 34 Location: Union, CT USA
|
Posted: Mon Aug 07, 2006 6:41 pm Post subject: |
|
|
The Help File mentions leaving the third parameter Null, but then goes on to say that "it only makes sense for it to be null when the second parameter is DEFAULT".
Confusing.....thanks again for the help
Dave
_________________ Dave Heck
dheck1961@cox.net
Union, Connecticut USA |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|