I want to launch a Powershell script when a usb device is unplugged. To accomplish that I would like to use a scheduled task but I don't know what event trigger I should use.
I already know that to detect when a USB device is plugged in, you have to use the following event trigger : (in Event Logs) Application and Service Logs/Microsoft/Windows/DeviceSetupManager/Admin but I am looking for the event trigger to use to detect when the device is unplugged.