Forum Discussion
BearHunter
Oct 26, 2022Copper Contributor
Automaticlly running a PS script when the USB drive is plugged in
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
Sort By
- Any update?
- Did this help?
- 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: https://stackoverflow.com/questions/53744938/trigger-powershell-based-on-event-log