Share via


Want to find event id when usb is inserted

Question

Friday, March 20, 2015 12:55 AM

I want to create a scheduled task to run a batch script with my backup

I looked in event viewer under microsoft > windows > DeiverFrameworks-UserMode 

But there was nothing in the logs when i plugged the drive in

The logging is enabled

I want to find the event id for when i plug this drive in so i can add it to the scheduled talk

Or is there a way i can setup a scheduled talk for when i insert the X: drive into the server ?

All replies (3)

Friday, March 20, 2015 1:10 AM ✅Answered | 1 vote

I don't think that logged in.. you might need a 3rd party app for that.

For ref : http://dfstream.blogspot.com.au/2014/01/the-windows-7-event-log-and-usb-device.html

Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.


Tuesday, March 24, 2015 2:51 AM ✅Answered

Hi,

Do you mean that you want system automatically starts a scheduled task to excute backup job when detecting connection of USB drive? If so, you could try to use the PowerShell together with the Task Scheduler in the thread below to achieve this.

Task Scheduler: How to automatically synchronize my USB flash drive?
http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/task-scheduler-how-to-automatically-synchronize-my/45a49d83-b1d8-4d37-8896-3d2696cf9795?page=1

Best Regards,

Mandy

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, March 20, 2015 4:20 AM

thanks for the advice,

Do you have any ideas for softwarei  can use ?

Or a solution to detect when i insert my backup drive to start the robocopy