Silently sign in users to the OneDrive sync app with their Windows credentials
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": OneDrive/SilentAccountConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'SilentAccountConfig' -ErrorAction SilentlyContinueApplication
Microsoft OneDrive (Microsoft) — October 2026 templates
October 2026 templates from pl4nty/web-admx-tool.