turbokitty
Technical User
Hello all,
How would I use an enviro var in a .reg file? I'd like to use the command "regedit /s fetch.reg" to update an existing key with the computer's computer name with a reg file (fetch.reg).
I've tried just coding the %computername% variable into the key like so:
[HKEY_LOCAL_MACHINE\SOFTWARE\ACME\ACME CLIENT]
"ClientName"="%computername%"
However when I merge the .reg file it puts the string %computername% in there instead of resolving the name.
Thanks!
TK
How would I use an enviro var in a .reg file? I'd like to use the command "regedit /s fetch.reg" to update an existing key with the computer's computer name with a reg file (fetch.reg).
I've tried just coding the %computername% variable into the key like so:
[HKEY_LOCAL_MACHINE\SOFTWARE\ACME\ACME CLIENT]
"ClientName"="%computername%"
However when I merge the .reg file it puts the string %computername% in there instead of resolving the name.
Thanks!
TK