Ouvrir dans l'explorateur

Autoriser l’accès distant à l’interface Plug-and-Play

Allow remote access to the Plug and Play interface

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Installation de périphériques EN : Computer Configuration › Policies › Administrative Templates › System › Device Installation
Pris en charge sur
Windows Server 2008, Windows 7 et Windows Vista EN : Windows Server 2008, Windows 7, and Windows Vista
Fichier ADMX
DeviceInstallation.admx
Nom interne
DeviceInstallation/DeviceManagement_RPCInterface_Allow

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie permet d’autoriser ou d’interdire l’accès distant à l’interface Plug-and-Play.

Si vous activez ce paramètre de stratégie, les connexions à distance à l’interface Plug-and-Play sont autorisées.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les connexions à distance à l’interface Plug-and-Play sont interdites.

This policy setting allows you to allow or deny remote access to the Plug and Play interface.

If you enable this policy setting, remote connections to the Plug and Play interface are allowed.

If you disable or do not configure this policy setting, remote connections to the Plug and Play interface are not allowed.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Settings
Nom de la valeur
AllowRemoteRPC
ÉtatValeur é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 : DeviceInstallation/DeviceManagement_RPCInterface_Allow
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowRemoteRPC' -Value 1 -Type DWord

Désactiver

# Désactiver : DeviceInstallation/DeviceManagement_RPCInterface_Allow
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowRemoteRPC' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : DeviceInstallation/DeviceManagement_RPCInterface_Allow
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
Remove-ItemProperty -Path $k -Name 'AllowRemoteRPC' -ErrorAction SilentlyContinue

Disponibilité