Forum Discussion
Syntax for Onedrive.admx edits - DefaultRootDir
I'll have an article out next week about my approach, but in summary, let's say there's one folder redirection policy already in place. I'll create one Onedrive GPO, that contains settings to create a custom environment variable, create the Onedrive sync folder, set the Onedrive settings, and change the folder redirection to the new location (including moving the data). The GPOs are filtered/denied etc so that when users are added to the appropriate group the old one stops applying and the new one applies instead.
Separating them makes sense if it's a more complex environment or requirement, but for most cases the "migration" to Onedrive just becomes a matter of dropping users in the group, advising them to launch Onedrive and complete initial setup, and monitoring network impact.
No OneDrive product team folks here I guess.
- Salvatore BiscariMar 16, 2017Silver Contributor
The problem is that the .admx template wrongly adds to the registry a REG_SZ instead of a REG_EXPAND_SZ, so the former does not expand the environment variable.
You can verify it by yourself, changing manually the type in the registry: you will find that REG_EXPAND_SZ works perfectly.
So the template must be edited manually to work, at least until someone at Microsoft will correct it.
Hope it helps...
- Paul CunninghamMar 16, 2017Steel Contributor
Thanks Salvatore, that's very interesting.
It's frustrating that we already need to edit the ADMX file to insert values, instead of being able to insert them via the GPO itself. Even more disappointing to learn that further edits to the ADMX are required to get this working.
I'll test it out. Appreciate your input.
- simon .Jul 27, 2017Copper ContributorHi,
Did you manage to get this working? I'm having the exact same problem whereby Ive populated the admx file with the Onedrive location but I get the error that Im unable to create the Onedrive folder location there.
Thanks