Open in the explorer

Code signing for driver packages

Signature de code pour les packages de pilotes

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Driver Installation FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Installation de pilotes
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
DeviceInstallation.admx
Internal name
DeviceInstallation/DriverSigning

Explanation

Determines how the system responds when a user tries to install driver package files that are not digitally signed.

This setting establishes the least secure response permitted on the systems of users in the group. Users can use System in Control Panel to select a more secure setting, but when this setting is enabled, the system does not implement any setting less secure than the one the setting established.

When you enable this setting, use the drop-down box to specify the desired response.

-- "Ignore" directs the system to proceed with the installation even if it includes unsigned files.

-- "Warn" notifies the user that files are not digitally signed and lets the user decide whether to stop or to proceed with the installation and whether to permit unsigned files to be installed. "Warn" is the default.

-- "Block" directs the system to refuse to install unsigned files. As a result, the installation stops, and none of the files in the driver package are installed.

To change driver file security without specifying a setting, use System in Control Panel. Right-click My Computer, click Properties, click the Hardware tab, and then click the Driver Signing button.

French text from Windows 11 26H2

Détermine la façon dont le système répond lorsqu’un utilisateur essaie d’installer des fichiers de package de pilotes qui n’ont pas été signés numériquement.

Ce paramètre établit la réponse la moins sécurisée permise sur les systèmes des utilisateurs du groupe. Les utilisateurs peuvent utiliser l’application Système dans le Panneau de configuration pour sélectionner un paramètre plus sécurisé, mais lorsque ce paramètre est activé, le système n’implémente aucun paramétrage moins sécurisé que celui établi par le paramètre.

Lorsque vous activez ce paramètre, utilisez la liste déroulante pour spécifier la réponse voulue.

-- « Ignorer » permet de procéder à l’installation même si elle inclut des fichiers non signés.

-- « Avertir » notifie l’utilisateur que les fichiers ne sont pas signés numériquement, et le laisse décider s’il convient d’arrêter ou de poursuivre l’installation, et de permettre ou non l’installation des fichiers non signés. « Avertir » est le paramètre par défaut.

-- « Bloquer » empêche l’installation des fichiers non signés. En conséquence, l’installation s’arrête et aucun des fichiers du package de pilote n’est installé.

Pour modifier la sécurité des fichiers de pilote sans activer un paramètre, utilisez l’application Système dans le Panneau de configuration. Cliquez avec le bouton droit sur Poste de travail, cliquez sur Propriétés, cliquez sur l’onglet Matériel, puis cliquez sur le bouton Signature du pilote.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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/DriverSigning
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# When Windows detects a driver file without a digital signature
# Possible options:
#   Ignore = 0
#   Warn = 1
#   Block = 2
Set-ItemProperty -Path $k -Name 'BehaviorOnFailedVerify' -Value 1 -Type DWord

Disable

# Disable: DeviceInstallation/DriverSigning
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": DeviceInstallation/DriverSigning
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing'
Remove-ItemProperty -Path $k -Name 'BehaviorOnFailedVerify' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
When Windows detects a driver file without a digital signature:Lorsque Windows détecte un fichier pilote sans signature numérique :DriverSigningOpDrop-down listenumBehaviorOnFailedVerifyREG_DWORD
Default choice (UI): #1
LabelValue
IgnoreREG_DWORD = 0
WarnREG_DWORD = 1
BlockREG_DWORD = 2

Availability