I want to know if a USB key has been plugged out. This can be achieved easily using a WMI Event listener. But what if the PC is shutdown - will a WMI permanent event detect this ?
The WMI permanent events
only works while the OS is running and the WMI service is up.