Search code examples
c#wmiwmi-querymeta-object-facility

WMI Permanent Event When PC is Shutdown


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 ?


Solution

  • The WMI permanent events only works while the OS is running and the WMI service is up.