Way to use a username wild card in .reg for a Login Script?
Posted on 2009-05-15
I currently have a login script that calls a .reg file.
"regedit /s filename.reg"
Below is the setup I have for the .reg file that gets called. First key is same for everyone, Second key's path needs to change depending on username.
Windows Registry Editor Version 5.00
"This Key is the same for all users"="C:\\Program Files\\fakeProgramLocation"
"This key is different for each user"="C:\\Documents and Settings\\%username%\\Desktop\\desitinationfolder\\"
Is there someway to use the wildcard like \%username%\ works in normal login scripts?
Is there a better way to do this?