Autoriser l’accès distant à l’interface Plug-and-Play
Allow remote access to the Plug and Play interface
Explication
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
| É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 : 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 DWordDé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 DWordRevenir à « 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