You are absolutely correct. My apologies for including the extra context about logon.
If you only want to know the exact moment a smart card is physically removed from the reader, regardless of what it was being used for, you are looking for this specific event:
Event ID: 610
Here are the precise details for that event:
- Log Name:
Applications and Services Logs/Microsoft/Windows/SmartCard-DeviceEnum/Operational
- Source:
SmartCard-DeviceEnum
- Description: "Smart card removal from reader [Reader Name]."
This event is generated by the low-level Windows service responsible for detecting the presence or absence of a card in the reader. It is the most direct and reliable indicator of the physical removal action itself.
How to Find This Specific Event
Since this log is not one of the main Windows logs, here is how to locate it:
- Open Event Viewer (press
Win + R, type eventvwr.msc, and hit Enter).
- In the left pane, navigate to:
Applications and Services Logs -> Microsoft -> Windows -> SmartCard-DeviceEnum
- Click on the
Operational log.
- Look for Event ID 610. You can also use the "Filter Current Log..." action on the right to quickly find all instances of this event.
PowerShell Command
To find these events quickly using PowerShell, this is the command you would use:
# Get all events for smart card removal from the specific operational log
Get-WinEvent -LogName "Microsoft-Windows-SmartCard-DeviceEnum/Operational" -FilterXPath "*[System[EventID=610]]"
For completeness, the corresponding event for a smart card being inserted into a reader is Event ID 609 in the exact same log.