Open in the explorer

Online Repair

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Office 2016 (Machine) › Updates
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
office16.admx
Internal name
office16/L_OnlineRepair

Explanation

This policy setting controls whether users can run an online repair for an Office client, such as Microsoft 365 Apps for enterprise, that comes with an Office 365 or Microsoft 365 plan. You can also control whether the online repair only uses a local source and doesn't use the Office Content Delivery Network (CDN) on the Internet.

Note: Users must have administrative privileges on the local computer to run an online repair.

If you enable or don't configure this policy setting, users can run an online repair from "Programs and Features" or "Add/Remove Programs" in Control Panel.

The online repair downloads and reinstalls Office from the Office CDN or from a local source, such a network share, depending on how Office is configured to get updates. If you aren't using the Office CDN, the local source must contain all the required files, including language files, to perform the repair.

Select "Use Office CDN (if needed)" if you want to use the Office CDN as an alternative location for the repair if the local source isn't available or doesn't contain all the necessary files.

You can also use a local copy of the Office Deployment Tool (setup.exe) for the repair by entering a local path for the Office Deployment Tool. This path can be a network share. If setup.exe can't be found in the local path specified, and "Use Office CDN (if needed)" is selected, then the online repair downloads a copy of setup.exe from the Office CDN. Otherwise, the online repair will fail.

The repair maintains all configuration settings, including products, languages, excluded applications, and update settings.

If you disable this policy setting, users can't run an online repair, but they can still run a quick repair.

Note: This policy setting only applies to subscription versions of Office, such as Microsoft 365 Apps for enterprise, and to subscription versions of Project and Visio.

Registry

HKEY_LOCAL_MACHINE\software\policies\microsoft\office\16.0\common\officeupdate
Value name
onlinerepair
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: office16/L_OnlineRepair
$k = 'HKLM:\software\policies\microsoft\office\16.0\common\officeupdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'onlinerepair' -Value 1 -Type DWord
# Use Office CDN (if needed)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'fallbacktocdn' -Value 1 -Type DWord
# Location of Office Deployment Tool
Set-ItemProperty -Path $k -Name 'localodtpath' -Value '<value>' -Type String

Disable

# Disable: office16/L_OnlineRepair
$k = 'HKLM:\software\policies\microsoft\office\16.0\common\officeupdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'onlinerepair' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": office16/L_OnlineRepair
$k = 'HKLM:\software\policies\microsoft\office\16.0\common\officeupdate'
Remove-ItemProperty -Path $k -Name 'onlinerepair' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fallbacktocdn' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'localodtpath' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Use Office CDN (if needed)L_FallBackToCDNCheck boxbooleanfallbacktocdnREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Location of Office Deployment Tool:L_LocalODTPathText boxtextlocalodtpathREG_SZ

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.