This error is typically an indication that the Event Log channel’s registry configuration is missing or corrupt—something that can happen on some systems (especially on OEM images or custom installations). Here are a few approaches to work around or fix the issue:
1. Verify Administrative Privileges
Make sure you are running the command prompt or PowerShell as an administrator before trying to enable the log. Lack of proper permissions can sometimes cause such errors.
2. Reinstall (Reimport) the Event Manifest
The SmartCard-DeviceEnum channel is defined in an event manifest file. If that file is missing or its registry entries are corrupted, you may see errors like this. To re-register the manifest:
Locate the Manifest File:
Typically, the manifest is found here:
Note: If the file is missing, it might be that your Windows installation (or OEM configuration) removed it. In that case, you might consider extracting the file from a known-good Windows 11 source or using an alternative auditing method.
3. Use Alternative Methods for Auditing Smart Card Events
If you can’t get the SmartCard-DeviceEnum channel re-enabled, you can still capture smart card insertions/removals by auditing Plug and Play events:
Configure Advanced Audit Policy for PnP Activity:
Open the Local Group Policy Editor: gpedit.msc.
Navigate to: Computer Configuration → Windows Settings → Security Settings → Advanced Audit Policy Configuration → Detailed Tracking.
Enable Audit PNP Activity (choose Success and optionally Failure).
Run gpupdate /force (or restart) for changes to take effect.
Examine the Security Log:
Smart cards show up as PnP devices. Look for events:
Event ID 6416: Device (card) insertion.
Event IDs 6417/6418: Device removal or disabling.
Filter the Security log for these events to monitor smart card activity.
Real-Time Monitoring with PowerShell/WMI:
If you’d rather respond to card events immediately, you can use a PowerShell script:
powershell
# Monitor card insertion
Register-WmiEvent -Query "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PnPEntity' AND TargetInstance.PNPClass='SmartCard'" -SourceIdentifier CardArrived
# Monitor card removal
Register-WmiEvent -Query "SELECT * FROM __InstanceDeletionEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PnPEntity' AND TargetInstance.PNPClass='SmartCard'" -SourceIdentifier CardRemoved
Use Get-Event or Wait-Event in your script to process these events.
4. Consider OEM or Image-Specific Issues
Some system images provided by OEMs may intentionally remove or disable certain event channels. If you continue to see issues (or if the manifest file isn’t present), it might be an intentional modification. In that case, relying on the PnP auditing or WMI monitoring methods would be your best bet.
By following these steps, you should be able to either restore the SmartCard-DeviceEnum channel or implement an alternative auditing solution to monitor smart card insertions and removals in Windows 11.
User
in latest win 11 there is no C:\Windows\System32\winevt\manifests folder , there is no microsoft-windows-smartcard-device log
Assistant
In recent builds of Windows 11 the dedicated manifest‑based SmartCard‑Device event log (and its manifest file) is no longer present. In other words, Microsoft has removed or hidden the old “Microsoft-Windows-SmartCard-DeviceEnum/Operational” channel, so you won’t find it in the usual location (or even in the “Analytic and Debug Logs” view).
However, you can still audit smart card insertion/removal using alternative methods. Here are two main approaches:
1. Audit Plug and Play (PnP) Activity via Advanced Audit Policy
Since every smart card is treated as a PnP device when inserted or removed, you can capture these events by auditing PnP activity:
Enable the Audit Policy:
Open the Local Group Policy Editor by running gpedit.msc.
Navigate to: Computer Configuration → Windows Settings → Security Settings → Advanced Audit Policy Configuration → Detailed Tracking
Find and enable Audit PNP Activity for Success (and optionally Failure if desired).
Run gpupdate /force (or reboot) to apply the changes.
Review the Security Log:
Open Event Viewer (eventvwr.msc).
Look in the Security log for events such as:
Event ID 6416 – typically indicates that a new device has been enumerated (useful for signalling smart card insertion).
Event IDs 6417 or 6418 – typically indicate that a device has been removed or disabled.
You can filter these events by searching for keywords like "SmartCard" or by matching the Device ID format.
This method leverages the operating system’s PnP auditing and works regardless of the presence of a dedicated SmartCard event channel.
2. Use WMI/PowerShell for Real-Time Monitoring
If you need immediate notifications or wish to incorporate this into a custom script, you can register for WMI events targeting PnP device changes:
Register for Insertion Events:
powershell
Register-WmiEvent -Query "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PnPEntity' AND TargetInstance.PNPClass='SmartCard'" -SourceIdentifier SmartCardInserted
Register for Removal Events:
powershell
Register-WmiEvent -Query "SELECT * FROM __InstanceDeletionEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PnPEntity' AND TargetInstance.PNPClass='SmartCard'" -SourceIdentifier SmartCardRemoved
Process the Events:
Use Get-Event or Wait-Event in your script to react to these changes in real time.
For example, you might write a small script that logs the time of insertion/removal or triggers additional actions.
Summary
No Dedicated Log?
In the latest Windows 11, the SmartCard‑DeviceManifest (and its corresponding event log) has been removed.
Alternative Auditing Methods:
• PnP Auditing: Enable “Audit PNP Activity” via Group Policy and inspect the Security log (e.g., events 6416 for insertion, 6417/6418 for removal).
• WMI/PowerShell Monitoring: Use WMI event subscriptions to dynamically capture when a smart card (a PnP device with PNPClass='SmartCard') is inserted or removed.
By employing either of these techniques, you can successfully audit or monitor smart card events on your Windows 11 system despite the absence of the old dedicated log channel.