Windows 10: Create an advanced Scheduled Task from the Command Line

Discus and support Create an advanced Scheduled Task from the Command Line in Windows 10 BSOD Crashes and Debugging to solve the problem; Hello. I'm trying to create a scheduled task to run a batch file on Windows 10 using either the command prompt or Powershell. When I create the task... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by KatrinaM_14, Jul 15, 2019.

  1. Create an advanced Scheduled Task from the Command Line


    Hello. I'm trying to create a scheduled task to run a batch file on Windows 10 using either the command prompt or Powershell. When I create the task with the Task Scheduler GUI, it works perfectly. However, when I try to re-create that same task with the command line, there doesn't seem to be enough parameters to do what I need it to do. I've attached screenshots of the GUI for the task I am trying to create. Specifically, I need to be able to trigger the task at log on of a specific user, as well as give the path of where to run the command (the "Start in" parameter). Neither of these options seem to be available according to the list of parameters here: https://support.microsoft.com/en-ca...-exe-to-schedule-tasks-in-windows-server-2003. I've done a lot of research and can't seem to find what I'm looking for, so any suggestions are greatly appreciated. Thanks.


    Create an advanced Scheduled Task from the Command Line 460aa16e-8cdb-43c4-be21-708a48a706db?upload=true.png Create an advanced Scheduled Task from the Command Line e1657392-f226-43f1-be2e-2192e550db65?upload=true.png Create an advanced Scheduled Task from the Command Line 1416426a-3cf5-4fd5-9964-4972df63153b?upload=true.png

    :)
     
    KatrinaM_14, Jul 15, 2019
    #1

  2. Unable to run Task Scheduler

    Hello Varun,

    Let's determine the cause of the issue. To get started, I'd like to get the following information:

    • Is this your first time to encounter this issue? If so, did you make any changes to your computer's configuration prior to this?
    • Are you getting any error messages?
    • Can you also please confirm the current build of your Windows 10?

      (Type winver into the Cortana search box, then hit
      Enter
      .)

    Meanwhile, I suggest that you try starting the Task Scheduler through command line. To do so, please follow these steps:

    • Open Command Prompt (Admin).
    • Type this net start task scheduler and hit Enter.

    We're looking forward to your response.
     
    Antoneth Ber, Jul 15, 2019
    #2
  3. Execute a command from SCCM Task sequence step "Run a Command line"

    Hi,

    Thanks for your suggestion.

    That will work indeed, however I need to run it from the SCCM Task Sequence's Run Command Line Step and I am not able to figure out how to do that.

    Can we change line while executing command from SCCM Task Sequence's Run Command Line Step?

    Regards
     
    sccm_learner, Jul 15, 2019
    #3
  4. Naki Win User

    Create an advanced Scheduled Task from the Command Line

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile Create an advanced Scheduled Task from the Command Line :)
     
Thema:

Create an advanced Scheduled Task from the Command Line

Loading...
  1. Create an advanced Scheduled Task from the Command Line - Similar Threads - Create advanced Scheduled

  2. Why would a script run from the command line but not in Task Scheduler?

    in Windows 10 Ask Insider
    Why would a script run from the command line but not in Task Scheduler?: It's a Python script and it runs perfectly from a cmd prompt but returns an 0x1 error in Task Scheduler. The path to Python is correct. The path to the script is correct. The Task is running under my name with admin permissions. A search hasn't turned-up anything relevant...
  3. Why does Task Scheduler task return 0x1 error but work fine from command line?

    in Windows 10 Ask Insider
    Why does Task Scheduler task return 0x1 error but work fine from command line?: I have a script that runs fine from the command line. When it runs from Task Scheduler using the same user account it returns a 0x1 error. I've been trying to debug it for several days now to no avail. What are some reasons it might be doing this? Screen captures submitted...
  4. Can't delete Windows Scheduled Task from command line

    in Windows 10 Customization
    Can't delete Windows Scheduled Task from command line: I have a PC with two accounts, one with admin privileges and one without. When in the non-admin account, I create a scheduled task with the following command: schtasks /Create /SC DAILY /ST 07:00 /TN "MyTask" /TR "MyCommand" /F This works as expected and creates the...
  5. Unable to create a task in Task Scheduler

    in Windows 10 Backup and Restore
    Unable to create a task in Task Scheduler: I am unable to create a task in Task Scheduler. A few day ago I Reset Win 10. I find that a task (Create System Restore Point) is not working. I deleted it and tried to create a new task. It let me fill all 'the blanks' until I get to the end when a box appears and asks me to...
  6. Unable to create a task in Task Scheduler

    in Windows 10 Support
    Unable to create a task in Task Scheduler: I am unable to create a task in Task Scheduler. A few day ago I Reset Win 10. I find that a task (Create System Restore Point) is not working. I deleted it and tried to create a new task. It let me fill all 'the blanks' until I get to the end when a box appears and asks me to...
  7. Create a scheduled task with PowerShell

    in Windows 10 Customization
    Create a scheduled task with PowerShell: Hello Microsoft team, I would like to create a scheduled task to restart PC on a daily basis. This would be run on a multiple devices running Windows 10. I think it's pretty handy to have it as a script via PowerShell ISE so I don't have to always create a tasks in all...
  8. Create task in task scheduler

    in Windows 10 Customization
    Create task in task scheduler: Dear all, I need your assistant to run the following two tasks: - Shutdown the PC - Reboot the PC Is there a difference if the PC joined to the domain or not? Thank you in advacne...
  9. Can't create task in Task Scheduler

    in Windows 10 Support
    Can't create task in Task Scheduler: Whenever I try to create a task in Task Scheduler, an error pops up. [img] I press OK, and this pops up: [img] Here is the transcript: "Unhandled Exception in Managed Code Snap-in FX:{c7b8fb06-bfe1-4c2e-9217-7a69a95bbac4} The system cannot find the...
  10. Run a scheduled task via command line via command line

    in Windows 10 Support
    Run a scheduled task via command line via command line: i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a solution? Is the...