Configure Background Sync: registry value BackgroundSyncEnabled and 6 moreComputerHKLM\Software\Policies\Microsoft\Windows\NetCache

Policy ID
Pol_BackgroundSyncSettings
Scope
Computer Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Network › Offline Files

Registry

BackgroundSyncEnabled

REG_DWORDComputer
Enabled value
1
Disabled value
0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Options (use only one)
; Enabled
"BackgroundSyncEnabled"=dword:00000001
; Disabled
"BackgroundSyncEnabled"=dword:00000000
CMD
:: Options (use only one)

:: Enabled
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncEnabled" /t REG_DWORD /d 1 /f
:: Disabled
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Options (use only one)
# Enabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncEnabled' -PropertyType DWord -Value 0 -Force | Out-Null

BackgroundSyncPeriodMin

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Sync Interval (minutes)
Value type
REG_DWORD
Minimum value
1
Maximum value
1440
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"BackgroundSyncPeriodMin"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncPeriodMin" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncPeriodMin' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

BackgroundSyncMaxStartMin

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Sync Variance (minutes)
Value type
REG_DWORD
Minimum value
0
Maximum value
3600
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"BackgroundSyncMaxStartMin"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncMaxStartMin" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncMaxStartMin' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

BackgroundSyncIgnoreBlockOutAfterMin

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Maximum Allowed Time Without A Sync (minutes)
Value type
REG_DWORD
Minimum value
0
Maximum value
4294967295
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"BackgroundSyncIgnoreBlockOutAfterMin"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncIgnoreBlockOutAfterMin" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncIgnoreBlockOutAfterMin' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

BackgroundSyncBlockOutStartTime

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Blockout Start Time (HHMM)
Value type
REG_DWORD
Minimum value
0
Maximum value
2400
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"BackgroundSyncBlockOutStartTime"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncBlockOutStartTime" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncBlockOutStartTime' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

BackgroundSyncBlockOutDurationMin

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Blockout Duration (minutes)
Value type
REG_DWORD
Minimum value
0
Maximum value
1440
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"BackgroundSyncBlockOutDurationMin"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncBlockOutDurationMin" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncBlockOutDurationMin' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

BackgroundSyncEnabledForForcedOffline

REG_DWORDComputer
Checked
1
Unchecked
0
Element
Enable Background Sync for shares in user selected "Work Offline" mode
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Options (use only one)
; Checked
"BackgroundSyncEnabledForForcedOffline"=dword:00000001
; Unchecked
"BackgroundSyncEnabledForForcedOffline"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncEnabledForForcedOffline" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "BackgroundSyncEnabledForForcedOffline" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncEnabledForForcedOffline' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'BackgroundSyncEnabledForForcedOffline' -PropertyType DWord -Value 0 -Force | Out-Null