C
Climberpm
I'm having a problem adding a registry key by logon script. Actually the
key adds OK but it just adds the wrong value.
The script loads a .reg file however it doesn't replace the %USERNAME%
variable with the actual username but instead uses USERNAME. So I end up
with a folder named "%USERNAME% and not "jdoe"
Here is the content of the .reg file, which I load from the script by the
"regedit /s loadkey.reg" command
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Creative Solutions\Practice Management]
"LocalPath"="n:\\wincsi.net\\ps\\%USERNAME%"
Any thoughts ?
Thanks
Paul
key adds OK but it just adds the wrong value.
The script loads a .reg file however it doesn't replace the %USERNAME%
variable with the actual username but instead uses USERNAME. So I end up
with a folder named "%USERNAME% and not "jdoe"
Here is the content of the .reg file, which I load from the script by the
"regedit /s loadkey.reg" command
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Creative Solutions\Practice Management]
"LocalPath"="n:\\wincsi.net\\ps\\%USERNAME%"
Any thoughts ?
Thanks
Paul