Open in the explorer

Turn on Smart Card Plug and Play service

Activer le service Plug-and-Play de la carte à puce

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Smart Card FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Carte à puce
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
Smartcard.admx
Internal name
Smartcard/SCPnPEnabled

Explanation

This policy setting allows you to control whether Smart Card Plug and Play is enabled.

If you enable or do not configure this policy setting, Smart Card Plug and Play will be enabled and the system will attempt to install a Smart Card device driver when a card is inserted in a Smart Card Reader for the first time.

If you disable this policy setting, Smart Card Plug and Play will be disabled and a device driver will not be installed when a card is inserted in a Smart Card Reader.

Note: This policy setting is applied only for smart cards that have passed the Windows Hardware Quality Labs (WHQL) testing process.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de contrôler le fonctionnement du service Plug-and-Play de la carte à puce.

Si vous activez ou ne configurez pas ce paramètre de stratégie, le service Plug-and-Play de la carte à puce est activé et le système essaiera d'installer un pilote de périphérique pour la carte à puce la première fois qu'une carte sera insérée dans un lecteur de carte à puce.

Si vous désactivez ce paramètre de stratégie, le service Plug-and-Play de la carte à puce est désactivé et aucun pilote de périphérique ne sera installé en cas d'insertion d'une carte dans un lecteur de carte à puce.

Remarque : ce paramètre de stratégie s'applique uniquement aux cartes à puce conformes au test de qualité WHQL (Windows Hardware Quality Labs).

Registry

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

Disable

# Disable: Smartcard/SCPnPEnabled
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScPnP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableScPnP' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Smartcard/SCPnPEnabled
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScPnP'
Remove-ItemProperty -Path $k -Name 'EnableScPnP' -ErrorAction SilentlyContinue

Availability