Forum Discussion
Syntax for Onedrive.admx edits - DefaultRootDir
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...
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- Paul CunninghamJul 29, 2017Steel Contributor
Changing the REG_SZ to a REG_EXPAND_SZ reportedly works. Or have you already tried that?
- John MarshallSep 14, 2017Brass Contributor
Yeah, it's a very good point. Disappointingly, the technical folks mention that you have to make this change, yet offer no further instructions as to how to do it: