Configure team site libraries to sync automatically
Explanation
This setting lets you specify SharePoint team site libraries to sync automatically the next time users sign in to the OneDrive sync app (OneDrive.exe). It may take up to 8 hours after a users signs in before the library begins to sync. To use the setting, you must enable OneDrive Files On-Demand, and the setting applies only for users on computers running Windows 10 (1709) Fall Creators Update or later. Do not enable this setting for the same library to more than 1,000 devices. To ensure a good sync experience, avoid enabling this feature on large libraries sets (For the most up to date guidance see https://learn.microsoft.com/sharepoint/use-group-policy#AutoMountTeamSites). This feature is not enabled for on-premises SharePoint sites.
If you enable this setting, the OneDrive sync app will automatically download the contents of the libraries you specified as online-only files the next time the user signs in. The user won't be able to stop syncing the libraries.
If you disable this setting, team site libraries that you've specified won't be automatically synced for new users. Existing users can choose to stop syncing the libraries, but the libraries won't stop syncing automatically.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDriveHKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\OneDrive- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: OneDrive/AutoMountTeamSites
$k = 'HKLM:\Software\Policies\Microsoft\OneDrive\TenantAutoMount'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Libraries
$items = @{
'<name1>' = '<value1>'
'<name2>' = '<value2>'
} # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type ExpandString }Disable
# Disable: OneDrive/AutoMountTeamSites
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": OneDrive/AutoMountTeamSites
$k = 'HKLM:\Software\Policies\Microsoft\OneDrive\TenantAutoMount'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Libraries:AutoMountTeamSitesListBox | List (table)list | Software\Policies\Microsoft\OneDrive\TenantAutoMountName = value pairs · additive | REG_EXPAND_SZ (values under the key) |
Application
Microsoft OneDrive (Microsoft) — October 2026 templates
October 2026 templates from pl4nty/web-admx-tool.