Open in the explorer

Silently sign in users to the OneDrive sync app with their Windows credentials

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
OneDrive.admx
Internal name
OneDrive/SilentAccountConfig

Explanation

This setting lets you silently sign in users to the OneDrive sync app (OneDrive.exe) with their Windows credentials.

If you enable this setting, users who are signed in on the PC with the primary Windows account (the account used to join the PC to the domain) can set up the sync app without entering the credentials for the account. Users will still be shown OneDrive Setup so they can select folders to sync and change the location of their OneDrive folder. If a user is using the previous OneDrive for Business sync app (Groove.exe), the new sync app will attempt to take over syncing the user's OneDrive from the previous app and preserve the user's sync settings. This setting is frequently used together with "Set the maximum size of a user's OneDrive that can download automatically" on PCs that don't have Files On-Demand, and "Set the default location for the OneDrive folder."

If you disable or do not configure this setting, users will need to sign in with their work or school account to set up sync.

Use cases

Automatically signs the OneDrive sync app in with the work account used to sign in to Windows, without the user entering credentials. The OneDrive setup wizard may still appear to choose folders or location; the policy speeds adoption, notably before Known Folder Move.

Prerequisites: Entra ID-joined or hybrid device, Entra account. Pitfall: multifactor authentication or conditional access requiring interaction blocks silent sign-in; if the "Set up OneDrive" screen shows up anyway, silent sign-in failed: check SSO.

Microsoft source: Silently configure user accounts

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
Value name
SilentAccountConfig
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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/SilentAccountConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SilentAccountConfig' -Value 1 -Type DWord

Disable

# Disable: OneDrive/SilentAccountConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SilentAccountConfig' -Value 0 -Type DWord

Revert to "Not configured"

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

Application

Microsoft OneDrive (Microsoft) — October 2026 templates

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