Open in the explorer

Prevent the sync app from automatically signing in users with existing credentials

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › OneDrive
Supported on
At least Windows Server 2016, Windows 10 Version 1709
ADMX file
OneDrive.admx
Internal name
OneDrive/DisableAutoConfig

Explanation

This setting determines whether or not the Sync client can automatically sign in.

If admins enable this setting (value 1), it prevents Sync from automatically signing with an existing AAD credential that is made available to Microsoft applications.

If admins disable (value 0) or do not configure this setting, Sync will automatically sign in.

Registry

HKEY_LOCAL_MACHINE\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.

Enable

# Enable: OneDrive/DisableAutoConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disabled Account Types
Set-ItemProperty -Path $k -Name 'DisableAutoConfig' -Value 0 -Type DWord  # between 0 and 128

Disable

# Disable: OneDrive/DisableAutoConfig
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OneDrive/DisableAutoConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'DisableAutoConfig' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Disabled Account Types:DisableAutoConfigTypesNumeric boxdecimalDisableAutoConfigREG_DWORD
Min: 0 · Max: 128 · Default (UI): 0

Application

Microsoft OneDrive (Microsoft) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.