Open in the explorer

Allow remote access to the Plug and Play interface

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

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Installation FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Installation de périphériques
Supported on
Windows Server 2008, Windows 7, and Windows Vista FR: Windows Server 2008, Windows 7 et Windows Vista
ADMX file
DeviceInstallation.admx
Internal name
DeviceInstallation/DeviceManagement_RPCInterface_Allow

Explanation

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.

French text from 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.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Settings
Value name
AllowRemoteRPC
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: 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

Disable

# Disable: 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

Revert to "Not configured"

# Revert to "Not configured": DeviceInstallation/DeviceManagement_RPCInterface_Allow
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
Remove-ItemProperty -Path $k -Name 'AllowRemoteRPC' -ErrorAction SilentlyContinue

Availability