Skip to content
WETNav
VHDMPDisk Image Mounting

Event ID 2: Virtual disk unsurfaced (dismounted)

Written when a mounted virtual disk is removed from the host, for example when the user ejects an ISO. Records the image path and the disk number.

Channel
Microsoft-Windows-VHDMP-Operational
Logged by default
Yes
Written on
Any host
Volume
Low
Provider
Microsoft-Windows-VHDMP
Needs a SACL
No

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

VhdFileNameFull path of the image file that was dismounted
VhdDiskNumberDisk number the image had while mounted; matches the opening event 1
Have one of these events? Paste it into the decoder

Analyst notes

  • 01The span between event 1 and event 2 for the same VhdFileName is the window in which files on the image were reachable; executions from that drive letter should fall inside it.
  • 02Use VhdDiskNumber to keep two images mounted at the same time apart.
  • 03A dismount during shutdown is normal and does not mean the user ejected the image.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-VHDMP-Operational' -FilterXPath "*[System[(EventID=2)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 2 mean?
Written when a mounted virtual disk is removed from the host, for example when the user ejects an ISO. Records the image path and the disk number. It is written to the VHDMP Operational log (Microsoft-Windows-VHDMP-Operational).
Is event 2 logged by default?
Yes, a default Windows installation records it.
Where is event 2 recorded?
In the Microsoft-Windows-VHDMP-Operational channel on the any host.

Written when a mounted virtual disk is removed from the host, for example when the user ejects an ISO. Records the image path and the disk number. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.