Open in the explorer

Allow administrators to override Device Installation Restriction policies

Autoriser les administrateurs à passer outre les stratégies de restriction d’installation de périphériques

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Installation › Device Installation Restrictions FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Installation de périphériques › Restrictions d’installation de périphériques
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
DeviceInstallation.admx
Internal name
DeviceInstallation/DeviceInstall_AllowAdminInstall

Explanation

This policy setting allows you to determine whether members of the Administrators group can install and update the drivers for any device, regardless of other policy settings.

If you enable this policy setting, members of the Administrators group can use the Add Hardware wizard or the Update Driver wizard to install and update the drivers for any device. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server.

If you disable or do not configure this policy setting, members of the Administrators group are subject to all policy settings that restrict device installation.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de déterminer les membres du groupe Administrateurs pouvant installer et mettre à jour les pilotes de tout périphérique, quels que soient les autres paramètres de stratégie.

Si vous activez ce paramètre de stratégie, les membres du groupe Administrateurs peuvent utiliser l’Assistant Ajout de matériel ou l’Assistant Mise à jour de pilote pour installer et mettre à jour les pilotes de tout périphérique. Si vous activez ce paramètre de stratégie sur un serveur Bureau à distance, il a une incidence sur la redirection des périphériques spécifiés depuis un client Bureau à distance vers le serveur Bureau à distance.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les membres du groupe Administrateurs doivent respecter toutes les stratégies limitant l’installation de périphériques.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value name
AllowAdminInstall
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/DeviceInstall_AllowAdminInstall
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAdminInstall' -Value 1 -Type DWord

Disable

# Disable: DeviceInstallation/DeviceInstall_AllowAdminInstall
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAdminInstall' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability