0

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 ?

user1438082
  • 2,740
  • 10
  • 48
  • 82

1 Answers1

1

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

RRUZ
  • 134,889
  • 20
  • 356
  • 483
  • so if i want to detect a usb change even when a pc is powered off how could that be done ? The only idea i can think of is to keep a list of the usb drives on a file and then compare to that file on pc bootup – user1438082 Dec 18 '13 at 21:34
  • 1
    Maintaining a list of connected devices can be an option. – RRUZ Dec 18 '13 at 21:55