Allow administrators to override Device Installation Restriction policies
Autoriser les administrateurs à passer outre les stratégies de restriction d’installation de périphériques
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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