Start OneDrive automatically when signing in to Windows
Explanation
This setting overrides a user's choice, ensuring OneDrive will automatically start every time they sign in to Windows.
If you configure this setting, OneDrive will start automatically when a user signs in to Windows. The OneDrive sync app must be restarted after this setting is enabled for the setting to take effect.
If you do not configure this setting or set it to any value other than 1, the user can choose to automatically start OneDrive (default choice) or to disable OneDrive from starting in OneDrive sync app settings.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\OneDrive- Value name
EnableAutoStart
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | not defined in the ADMX |
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/EnableAutoStart
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAutoStart' -Value 1 -Type DWordDisable
# Disable: OneDrive/EnableAutoStart
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\OneDrive'
# disabledValue is not defined in the ADMX: no value is specified for the "Disabled" stateRevert to "Not configured"
# Revert to "Not configured": OneDrive/EnableAutoStart
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'EnableAutoStart' -ErrorAction SilentlyContinueApplication
Microsoft OneDrive (Microsoft) — October 2026 templates
October 2026 templates from pl4nty/web-admx-tool.