Restrict Internet communication
Restreindre la communication Internet
Explanation
This policy setting specifies whether Windows can access the Internet to accomplish tasks that require Internet resources.
If you enable this setting, all of the the policy settings listed in the "Internet Communication settings" section are set such that their respective features cannot access the Internet.
If you disable this policy setting, all of the the policy settings listed in the "Internet Communication settings" section are set such that their respective features can access the Internet.
If you do not configure this policy setting, all of the the policy settings in the "Internet Communication settings" section are set to not configured.
Ce paramètre de stratégie indique si Windows peut accéder à Internet pour accomplir des tâches qui nécessitent des ressources Internet.
Si vous activez ce paramètre de stratégie, tous les paramètres de stratégie affichés dans la section « Paramètres de communication Internet » sont définis de sorte que leurs fonctionnalités correspondantes aient accès à Internet.
Si vous désactivez ce paramètre de stratégie, tous les paramètres de stratégie affichés dans la section « Paramètres de communication Internet » sont définis de sorte que leurs fonctionnalités correspondantes aient accès à Internet.
Si vous ne configurez pas ce paramètre de stratégie, aucun des paramètres de stratégie affichés dans la section « Paramètres de communication Internet » n’est configuré.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\InternetManagement- Value name
RestrictCommunication
| 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: ICM/InternetManagement_RestrictCommunication_1
$k = 'HKCU:\Software\Policies\Microsoft\InternetManagement'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RestrictCommunication' -Value 1 -Type DWord
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoPublishingWizard' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'NoWebServices' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'NoOnlinePrintsWizard' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'NoInternetOpenWith' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoGenTicket' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'AllowWindowsEntitlementReactivation' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Messenger\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'CEIP' -Value 2 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableHTTPPrinting' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows\HandwritingErrorReports'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventHandwritingErrorReports' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows\TabletPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventHandwritingDataSharing' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Assistance\Client\1.0'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoOnlineAssist' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'NoExplicitFeedback' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'NoImplicitFeedback' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMovieMaker'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WebHelp' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'CodecDownload' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'WebPublish' -Value 1 -Type DWordDisable
# Disable: ICM/InternetManagement_RestrictCommunication_1
$k = 'HKCU:\Software\Policies\Microsoft\InternetManagement'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RestrictCommunication' -Value 0 -Type DWord
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoPublishingWizard' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'NoWebServices' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'NoOnlinePrintsWizard' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'NoInternetOpenWith' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoGenTicket' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'AllowWindowsEntitlementReactivation' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Messenger\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'CEIP' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableHTTPPrinting' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows\HandwritingErrorReports'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventHandwritingErrorReports' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows\TabletPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventHandwritingDataSharing' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Assistance\Client\1.0'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoOnlineAssist' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'NoExplicitFeedback' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'NoImplicitFeedback' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMovieMaker'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WebHelp' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'CodecDownload' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'WebPublish' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ICM/InternetManagement_RestrictCommunication_1
$k = 'HKCU:\Software\Policies\Microsoft\InternetManagement'
Remove-ItemProperty -Path $k -Name 'RestrictCommunication' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoPublishingWizard' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoWebServices' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoOnlinePrintsWizard' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoInternetOpenWith' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform'
Remove-ItemProperty -Path $k -Name 'NoGenTicket' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowWindowsEntitlementReactivation' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Messenger\Client'
Remove-ItemProperty -Path $k -Name 'CEIP' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'DisableHTTPPrinting' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Windows\HandwritingErrorReports'
Remove-ItemProperty -Path $k -Name 'PreventHandwritingErrorReports' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Windows\TabletPC'
Remove-ItemProperty -Path $k -Name 'PreventHandwritingDataSharing' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Assistance\Client\1.0'
Remove-ItemProperty -Path $k -Name 'NoOnlineAssist' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoExplicitFeedback' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoImplicitFeedback' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMovieMaker'
Remove-ItemProperty -Path $k -Name 'WebHelp' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'CodecDownload' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WebPublish' -ErrorAction SilentlyContinue