Scheduled task on USB connection
Solved
divayv
Posted messages
312
Status
Member
-
MEMSEL Posted messages 3 Status Member -
MEMSEL Posted messages 3 Status Member -
Hello everyone,
I would like to schedule a basic task in the Windows Task Scheduler. I want the trigger to be the connection of a USB drive with a specific name, but in any USB port (I could settle for a single port if need be). How can I do that? If I choose, on the second page of the Create Basic Task Wizard, the option "If a specific event is logged", I find myself on page 3 with a huge list of different events: which one should I choose???
For your information, the goal is to automatically run the SyncToy software to manage synchronization between two folders, one on my PC and the other on the USB drive (hence the topic).
Thank you in advance for your response.
Best regards,
Valentin
Configuration: ASUS R409C
Windows 8.1
I would like to schedule a basic task in the Windows Task Scheduler. I want the trigger to be the connection of a USB drive with a specific name, but in any USB port (I could settle for a single port if need be). How can I do that? If I choose, on the second page of the Create Basic Task Wizard, the option "If a specific event is logged", I find myself on page 3 with a huge list of different events: which one should I choose???
For your information, the goal is to automatically run the SyncToy software to manage synchronization between two folders, one on my PC and the other on the USB drive (hence the topic).
Thank you in advance for your response.
Best regards,
Valentin
Configuration: ASUS R409C
Windows 8.1
5 answers
-
In the events, choose:
journal: Microsoft-Windows-DeviceSetupManager/Admin
source: DeviceSetupManager
event id: 112
-- -
Hello thev, thank you for your reply.
However, it doesn't work! The task created is indeed listed in the active tasks, but it is not triggered when the USB key is connected: neither on the 2.0 port nor on the 3.0 port, even after a restart.
I would like to specify that the key is a PNY 3.0 USB drive, more specifically: http://www.fnac.com/Cle-USB-3-0-PNY-Hook-Attache-16-Go/a6536291/w-4
In fact, the goal is to replace the trigger for the task as proposed here: https://www.howtogeek.com/howto/25046/schedule-synctoy-to-run-automatically-with-task-scheduler-in-windows-7/
Thank you for your help!-
All my apologies, I hadn't read the tutorial carefully and executed SyncToy.exe instead of SyncToyCmd.exe. Everything is now working perfectly, I'm very satisfied with the tip.
Moreover, the synchronization happens almost in real-time: a change in one of the folders will reflect in the other within a few seconds as long as the drive is connected.
Thank you very much for the help!!!
-
-
-
Thank you, Thev.
Indeed, this log does exist on Windows 8 / 2012 Server, but I couldn't find it on Windows 7 / 2008 Server.
Could it be in another log?
Thank you. -
Device Setup Manager is indeed a new service in Windows 8/2012 Server with associated journaling.
Therefore, I don’t think there is an equivalent in Windows 7.
--
