OneDrive File Issues

Set the OneDrive Default Folder Location Using Group Policy

Khadija KhanKhadija Khan Nov 14, 2026 868 views

Question details

An administrator needs to configure the default local folder for OneDrive synchronization using Group Policy.

Set the OneDrive Default Folder Location Using Group Policy
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Set a default OneDrive folder location for users in an organization.
Observed behavior
OneDrive requires a supported local sync folder and cannot use a network drive or UNC path as its sync root.
Before you start

Obtain your Microsoft Entra tenant ID and choose a local path available to the intended users. Make sure the OneDrive administrative template files are available for Group Policy.

Solution 1Recommended

Configure the OneDrive default folder location with Group Policy

Use the OneDrive administrative template to set a default local folder path for a tenant.

1
Install the templates

Copy OneDrive.admx to the Group Policy Central Store or the local PolicyDefinitions folder, and copy the matching OneDrive.adml file to the appropriate language subfolder.

2
Open the policy

Open Group Policy Management, edit the appropriate Group Policy Object, and find OneDrive under Administrative Templates. Open the policy named Set the default location for the OneDrive folder.

3
Enter the tenant and path

Select Enabled, click Show, and enter the tenant ID as the value name and the desired local folder path as the value. Click OK, then apply the policy.

4
Refresh and verify

On a targeted Windows device, run gpupdate /force, then check the default folder offered during OneDrive setup.

Configure the OneDrive default folder location with Group Policy
Use a local path: A network drive or UNC path cannot be used as the OneDrive sync root. Setting a default does not automatically move an existing OneDrive sync folder.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative for working with Office documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easier to bring existing files into your workflow. WPS Office does not change OneDrive Group Policy settings.

Open and edit files stored in a local OneDrive sync folderCompatible with Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsWork with a free, lightweight Office alternative
QA img-9

Frequently Asked Questions

Can I set a network drive or UNC path as the OneDrive sync folder?

No. OneDrive does not support a network drive or UNC path as its local sync root. Choose a supported local path in the OneDrive Group Policy setting instead.

Where can I find the OneDrive folder location policy?

After installing the OneDrive administrative templates, edit the relevant Group Policy Object and look under Administrative Templates > OneDrive for Set the default location for the OneDrive folder.

What information does the policy require?

In the policy's Show dialog, enter the Microsoft Entra tenant ID as the value name and the desired local folder path as the value.

Will this policy move an existing OneDrive folder?

No. The policy sets the default location offered for OneDrive setup; it does not automatically move an existing sync folder.