Automaticlly running a PS script when the USB drive is plugged in

Copper Contributor

I am writing a PS script to pull user files from C:\Users\{User}\Some Files here to a USB drive. I am trying to all it to automatically start when the USB drive is plugged in. The PS script will be on the USB drive

3 Replies
You could try to deploy a Schedule Task to the clients which triggers on an event of a USB drive being attached to the computer. Something is discussed here: