Forum Discussion
UserDataDir can't handle OS variables
I filled "HKLM:\SOFTWARE\Policies\Microsoft\Edge" "UserDataDir" with value "%appdata%\Microsoft\EdgeData" but after launching Edge it gives an error that Edge can't create the directory.
Created it in the same user context without an issue, but even then it is not working. Pointing it to a hard coded path like C:\Users\username\AppData\Roaming\Microsoft\EdgeData seems to work (but I can't predict the value of %appdata%).
Same behavior for the DiskCacheDir setting.
I saw "${users}/${user_name}/Edge" in the example value, but $(users) also doesn't seem to work.
Would be nice to use vars like %appdata%.
- FreekBloemhofBrass Contributor
Found a reference of the supported variables at https://www.chromium.org/administrators/policy-list-3/user-data-directory-variables. Now it is working fine!