I offer this vbs script I wrote a long time ago, don't ask me for any details or support. But notice DEVICE LEFT:
================================================================
' test computer's fitness to detect DeviceChange events. Self terminates in 5 minutes.
'
Dim beginTime, endTime, elapsed
strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colMonitoredEvents = objWMIService. _
ExecNotificationQuery( _
"Select * from Win32_VolumeChangeEvent")
WScript.Echo "Begin Test"
beginTime = Now
Do
Set...