jmateknik
asked on
Pushing registry setting to User Shell Folders w. Group Policy Preferences (escape key needed)
Introduction:
Place yourself in the registrybranch Explorer (fullpath is HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Explor er). Two keys holds profile-related path-values:
Key 1
Name: Shell Folders
Type: REG_SZ
Charateristics: When not explicitly set in Group policy, literal paths are used (ie C:\Documents and Settings\carl\appdata)
Key 2
Name: User Shell Folders
Type: REG_EXPAND_SZ
Charateristics: When not explicitly set in Group policy, relative paths are used (ie %USERPROFILE%\Application Data)
Having used redirection I need to bring the appdata-settings back to default from redirected using Group Policy Preferences (Disabling redirection in Group Policy does not change the appdata setting back to the default, hence the hole issue).
Changing the REG_SZ-settings (Shell Folders) is not an issue, but the REG_EXPAND__SZ (User Shell Folders) is.
The Data that needs to be written to the Appdata value is exactly %USERPROFILE%\Application Data, but when I do as per the image underneath:
%Userprofile% is translated into C:\Documents and Settings\<username>, as illustrated in the next picture:
If i could only escape the %-character like in program languages (In Powershell I would ie use the escape-character ` if i wanted to escape ",$ etc).
Any input is greatly appreciated...
Anders from Randers, Denmark
Place yourself in the registrybranch Explorer (fullpath is HKEY_CURRENT_USER\Software
Key 1
Name: Shell Folders
Type: REG_SZ
Charateristics: When not explicitly set in Group policy, literal paths are used (ie C:\Documents and Settings\carl\appdata)
Key 2
Name: User Shell Folders
Type: REG_EXPAND_SZ
Charateristics: When not explicitly set in Group policy, relative paths are used (ie %USERPROFILE%\Application Data)
Having used redirection I need to bring the appdata-settings back to default from redirected using Group Policy Preferences (Disabling redirection in Group Policy does not change the appdata setting back to the default, hence the hole issue).
Changing the REG_SZ-settings (Shell Folders) is not an issue, but the REG_EXPAND__SZ (User Shell Folders) is.
The Data that needs to be written to the Appdata value is exactly %USERPROFILE%\Application Data, but when I do as per the image underneath:
%Userprofile% is translated into C:\Documents and Settings\<username>, as illustrated in the next picture:
If i could only escape the %-character like in program languages (In Powershell I would ie use the escape-character ` if i wanted to escape ",$ etc).
Any input is greatly appreciated...
Anders from Randers, Denmark
ASKER
Have you succesfully done that?
Because I actually tried that prior to creating this thread with no luck.
Because I actually tried that prior to creating this thread with no luck.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My apologies for returning this late. A to effective Outlook rule and a busy life...
How did you know the answer - testing or working at MS?
It works - thank you :-)
How did you know the answer - testing or working at MS?
It works - thank you :-)
%%USERPROFILE%%\Applicatio