OneDrive GPO KB ID 0001821
Problem
The administrative template that you get with Win11 is somewhat out of date, so if you want to manage OneDrive with domain group policy your options are limited, if only there was a newer administrative template!
Well, there is, and it gets updated and sent to you quite regularly. Microsoft just do a good job of hiding it.
Solution OneDrive GPO
Depending on your deployment the files you need can be in different locations, the biggest challenge is finding them. execute the following PowerShell to locate them.
[box]
$OnePath = ("$env:LOCALAPPDATA\Microsoft\OneDrive", ` "$env:ProgramFiles(x86)\Microsoft\OneDrive", ` "$env:ProgramFiles\Microsoft OneDrive") $OnePath | foreach{ Get-ChildItem "$_\*\adm\onedrive.adm?" -ErrorAction SilentlyContinue }
[/box]
As you can (above) see mine are in my user profile. The folder that they are in will also give you the build number, so you can check occasionally for updates (that will get pulled down when your OneDrive client gets updated).
Go to that directory and you will find the ADMX and ADML files.
Note: For anyone who is not English speaking, there may be a different ADML file in the locale folders you can see above.
Copy the OneDrive.admx file into your PolicyDefinitions folder (if unsure of the path, see below. obviously substitute your own domain name and here I’m on a domain controller so the SYSVOL volume on my local drive).
Now change to the INPUT LOCALE folder (in my case en-US) and copy the OneDrive.adml file into that folder.
Then when you are in the Group Policy Management Editor you will see the updated OneDrive options.
[box]
Computer Configuration > Policies > Administrative Templates > OneDrive
[/box]
If you can’t see them ensure your policy definitions have been setup correctly.
Related Articles, References, Credits, or External Links
Setup up a Central ‘PolicyDefinitions’ Store (for ADMX files)