Online Content Options: registry value useonlinecontentUserHKCU\software\policies\microsoft\office\16.0\common\internet
- Policy ID
- L_Onlinecontentoptions
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Category
- Microsoft Office 2016 › Tools | Options | General | Service Options... › Online Content
Registry
useonlinecontent
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- Online content options
| Item | Stored value |
|---|---|
| Do not allow Office to connect to the Internet | 0 |
| Allow Office to connect to the Internet | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\internet] ; Options (use only one) ; Do not allow Office to connect to the Internet "useonlinecontent"=dword:00000000 ; Allow Office to connect to the Internet "useonlinecontent"=dword:00000002
CMD
:: Options (use only one) :: Do not allow Office to connect to the Internet reg add "HKCU\software\policies\microsoft\office\16.0\common\internet" /v "useonlinecontent" /t REG_DWORD /d 0 /f :: Allow Office to connect to the Internet reg add "HKCU\software\policies\microsoft\office\16.0\common\internet" /v "useonlinecontent" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Force | Out-Null # Options (use only one) # Do not allow Office to connect to the Internet New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Name 'useonlinecontent' -PropertyType DWord -Value 0 -Force | Out-Null # Allow Office to connect to the Internet New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Name 'useonlinecontent' -PropertyType DWord -Value 2 -Force | Out-Null