Restreindre la communication Internet
Restrict Internet communication
Explication
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é.
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.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\InternetManagement- Nom de la valeur
RestrictCommunication
| État | Valeur écrite | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Activé | REG_DWORD = 1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Désactivé | REG_DWORD = 0
|
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : ICM/InternetManagement_RestrictCommunication_2
$k = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\Software\Policies\Microsoft\PCHealth\HelpSvc'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Headlines' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'MicrosoftKBSearch' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DoReport' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Internet Connection Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ExitOnMSICW' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\EventViewer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MicrosoftEventVwrDisableLinks' -Value 1 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRootAutoUpdate' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Registration Wizard Control'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoRegistration' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\SearchCompanion'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableContentFileUpdates' -Value 1 -Type DWord
$k = 'HKLM:\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 = 'HKLM:\Software\Policies\Microsoft\Windows\DriverSearching'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DontSearchWindowsUpdate' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableWindowsUpdateAccess' -Value 1 -Type DWord
$k = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 DWord
$k = 'HKLM:\Software\Policies\Microsoft\SQMClient\Windows'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'CEIPEnable' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoActiveProbe' -Value 1 -Type DWordDésactiver
# Désactiver : ICM/InternetManagement_RestrictCommunication_2
$k = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\Software\Policies\Microsoft\PCHealth\HelpSvc'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Headlines' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'MicrosoftKBSearch' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DoReport' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoAutoUpdate' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Internet Connection Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ExitOnMSICW' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\EventViewer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MicrosoftEventVwrDisableLinks' -Value 0 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRootAutoUpdate' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Registration Wizard Control'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoRegistration' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\SearchCompanion'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableContentFileUpdates' -Value 0 -Type DWord
$k = 'HKLM:\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 = 'HKLM:\Software\Policies\Microsoft\Windows\DriverSearching'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DontSearchWindowsUpdate' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableWindowsUpdateAccess' -Value 0 -Type DWord
$k = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\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 DWord
$k = 'HKLM:\Software\Policies\Microsoft\SQMClient\Windows'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'CEIPEnable' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoActiveProbe' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : ICM/InternetManagement_RestrictCommunication_2
$k = 'HKLM:\Software\Policies\Microsoft\InternetManagement'
Remove-ItemProperty -Path $k -Name 'RestrictCommunication' -ErrorAction SilentlyContinue
$k = 'HKLM:\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 = 'HKLM:\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 = 'HKLM:\Software\Policies\Microsoft\Messenger\Client'
Remove-ItemProperty -Path $k -Name 'CEIP' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\HelpSvc'
Remove-ItemProperty -Path $k -Name 'Headlines' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MicrosoftKBSearch' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
Remove-ItemProperty -Path $k -Name 'DoReport' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'Disabled' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Internet Connection Wizard'
Remove-ItemProperty -Path $k -Name 'ExitOnMSICW' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\EventViewer'
Remove-ItemProperty -Path $k -Name 'MicrosoftEventVwrDisableLinks' -ErrorAction SilentlyContinue
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot'
Remove-ItemProperty -Path $k -Name 'DisableRootAutoUpdate' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Registration Wizard Control'
Remove-ItemProperty -Path $k -Name 'NoRegistration' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\SearchCompanion'
Remove-ItemProperty -Path $k -Name 'DisableContentFileUpdates' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'DisableHTTPPrinting' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DriverSearching'
Remove-ItemProperty -Path $k -Name 'DontSearchWindowsUpdate' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'DisableWindowsUpdateAccess' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\HandwritingErrorReports'
Remove-ItemProperty -Path $k -Name 'PreventHandwritingErrorReports' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\TabletPC'
Remove-ItemProperty -Path $k -Name 'PreventHandwritingDataSharing' -ErrorAction SilentlyContinue
$k = 'HKLM:\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
$k = 'HKLM:\Software\Policies\Microsoft\SQMClient\Windows'
Remove-ItemProperty -Path $k -Name 'CEIPEnable' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator'
Remove-ItemProperty -Path $k -Name 'NoActiveProbe' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'NoAutoUpdate' -ErrorAction SilentlyContinue