Windows 10: Launching a program when a USB drive is inserted.using Task Scheduler

Discus and support Launching a program when a USB drive is inserted.using Task Scheduler in Windows 10 Gaming to solve the problem; I used Event Viewer to figure out the event that is triggered when a USB drive is inserted into my Microsoft Surface Pro 9 running Windows 11. I then... Discussion in 'Windows 10 Gaming' started by Salil Surendran, Mar 5, 2025 at 5:37 PM.

  1. Launching a program when a USB drive is inserted.using Task Scheduler


    I used Event Viewer to figure out the event that is triggered when a USB drive is inserted into my Microsoft Surface Pro 9 running Windows 11. I then attached a task to that particular event to start a program, however, even though I see that specific event is logged in the Event Viewer, the task to launch the program doesn't get executed. I have restarted my laptop several times, yet it doesn't work. Microsoft-Windows-DriverFrameworks-UserMode/Operational/2101 is the event I used but I have also used 2106. When I go to the associated task in task scheduler and I run it, it successfully launch

    :)
     
    Salil Surendran, Mar 5, 2025 at 5:37 PM
    #1

  2. Task Scheduler in Windows 10

    Here are some observations:

    • You use drive M: as a target. Are you sure this drive exists in the context of the scheduled task?
    • I do not know if the task's account name is correct in your domain environment.
    • To check if the batch file gets launched, insert this code line right at the start:

      echo Task ran on %date% at %time% >> C:\Batch_Files\Log.txt

    Please remember to mark my reply by clicking "Did this solve your problem?".
     
    Frederik Long, Mar 5, 2025 at 5:38 PM
    #2
  3. App Runs Properly but Win10Pro Task Scheduler Cannot Run It

    We have a requirement for extremely accurate computer clock time and use a small app that that, when launched, checks with a pool of time servers and syncs our computer clock. We want to schedule this app to run every couple of hours.

    The app runs properly when I launch it manually. I created a task in Task Scheduler to do this automatically every two hours and, when I manually run the task within Task Scheduler, it also runs properly. However, it will not run on on its own on a schedule.
    Task Scheduler fails to launch it.

    On a different computer, another app is able to launch it when that app is launched but, again, Task Scheduler fails to launch it on a schedule.

    The task is configured in Task Scheduler as follows:

    GENERAL

    • When running the task, use the following user account: it's my own account, and I am an Administrator on the computer
    • Run only when user is logged on
    • Run with highest privileges
    • Configure for Windows 10
    TRIGGERS

    • Trigger: At task creation/modification
    • Repeat every 2 hours for a duration of indefinitely
    • Enabled
    ACTIONS

    • Start a program "path...\SysTimeUpdate.exe" min ('min' being an argument)
    CONDITIONS

    • none - no conditions
    SETTINGS

    • Allow task to be run on demand
    • Run task as soon as possible after a schedules start is missed
    • Stop the task if it runs longer than 1 hour
    • If the running task does not end when requested, force it to stop
    • If the task is already running, then the following rule applies - Stop the existing instance

    Someone suggested that my Administrator account may not have full privileges, and it may be a permissions issue but, if so, why can I launch it manually and why can another app launch it when that app is launched but Task Scheduler cannot? This very very
    baffling, and any assistance would be very much appreciated. Thank you.
     
    Samurai7388, Mar 5, 2025 at 5:38 PM
    #3
  4. Launching a program when a USB drive is inserted.using Task Scheduler

    Task Scheduler with error message The selected task »CreateChoiceProcessTask« no longer exists

    Hi,

    Thank you for posting your query on Microsoft Community. Let me assist you.

    I suggest you to clear the task from Task Scheduler using the below steps and check if the issue still persists.

    Steps:-

    • Type Task Scheduler on Search bar.
    • Click on Task Scheduler Library.
    • Select the particular task and right click on it.
    • Select End.

    Hope this information is helpful. Please do let us know if you need further assistance, we’ll be glad to assist you.
     
    Pawan Dhondiyal, Mar 5, 2025 at 5:38 PM
    #4
Thema:

Launching a program when a USB drive is inserted.using Task Scheduler

Loading...
  1. Launching a program when a USB drive is inserted.using Task Scheduler - Similar Threads - Launching program USB

  2. Launching a program when a USB drive is inserted.using Task Scheduler

    in Windows 10 Software and Apps
    Launching a program when a USB drive is inserted.using Task Scheduler: I used Event Viewer to figure out the event that is triggered when a USB drive is inserted into my Microsoft Surface Pro 9 running Windows 11. I then attached a task to that particular event to start a program, however, even though I see that specific event is logged in the...
  3. Scheduled Task Launch Failure - 2147944309

    in Windows 10 Gaming
    Scheduled Task Launch Failure - 2147944309: Hi, There is a scheduled task that executes a script. It was running fine until one day it started to fail with 'Task Scheduler failed to start "Task" task for user "domain account". Additional Data: Error Value: 2147944309.' It failed on a Friday, ran on a Saturday, then...
  4. How to quit/close a program using Task Scheduler ?

    in Windows 10 BSOD Crashes and Debugging
    How to quit/close a program using Task Scheduler ?: I would like to have Task scheduler close a program after computer has been idle for a set amount of time. Is there a way to do that ? I previously posted a question about my computer not waking from sleep and I could not find a solution. I think I've worked out that it's...
  5. How to start ClickOnce Program using Task Scheduler

    in Windows 10 Customization
    How to start ClickOnce Program using Task Scheduler: I have tried several different techniques to start a ClickOnce application using Windows 10 Task Scheduler. None of them are satisfactory. For some of the attempts, the program doesn't seem to start There is no indication in Event Log or Task Schedule History that there was...
  6. How to start ClickOne Program using Task Scheduler

    in Windows 10 Customization
    How to start ClickOne Program using Task Scheduler: I have tried several different techniques to start a ClickOnce application using Windows 10 Task Scheduler. None of them are satisfactory. For some of the attempts, the program doesn't seem to start There is no indication in Event Log or Task Schedule History that there was...
  7. Scheduled Task Won't Launch Program with .bat File

    in Windows 10 Customization
    Scheduled Task Won't Launch Program with .bat File: I wrote a couple simple bat files to both shut down and launch Adobe Media Encoder on a Windows 10 machine. When I double click on them, both launch and execute flawlessly. However when I schedule a task and click to run them from the scheduled task, the status just shows...
  8. Task Scheduler - how to run program on different drive?

    in Windows 10 Software and Apps
    Task Scheduler - how to run program on different drive?: Hi, I'm trying to set up a task using Task Scheduler to run a game which is on one of my secondary drives, drive F: - I have Windows 10 installed on the C: drive. The problem I'm having is Task Scheduler doesn't seem able to start a program if it's on any drive except C: -...
  9. Task Scheduler not running programs...

    in Windows 10 Support
    Task Scheduler not running programs...: Hello Guys, I have a Windows 10 Laptop. Tried using Task Scheduler to automatically run Good Sync program on a predefined schedule. However, it fails to run the program. My user account has administrative priviledges. Thanks for your replies. 37970
  10. Task Scheduler - launch program hidden in system tray

    in Windows 10 Support
    Task Scheduler - launch program hidden in system tray: I am using a program called ThrottleStop to undervolt my laptop. I have configured it via Task Scheduler to launch minimized at the log on of any user. Is there any way to launch it with the icon hidden in the system tray, similar to how Windows Defender works? 96563