Powershell - How to run a scheduled task scheduler job from a remote machine? RRS feed

  • Question

  • Hi guys,

    I am trying to find a script which can run any task scheduler job on a remote machine. Any help would be appreciated!!




    Monday, November 18, 2019 10:27 PM


All replies

  • The schtasks command should be able to do that for you.

    -- Bill Stewart [Bill_Stewart]

    Monday, November 18, 2019 10:34 PM
  • Thank you! But when I use this command, Powershell console displays this message: 

    SUCCESS: Attempted to run the scheduled task "TaskName".

    But I notice that this task is not running, Status in task scheduler shows "Queued". 

    This is the command which I have used:

    schtasks /run /s ServerName /tn "TaskName"

    Can anyone help?

    Thanks in advance!



    Tuesday, November 19, 2019 8:17 PM
  • For help with the task scheduler post in the Windows General forum for you version of Windows. This snot a utilities forum.


    Tuesday, November 19, 2019 8:44 PM
  • Ok, thank you


    Tuesday, November 19, 2019 9:12 PM
  • Check the task's history tab to see if there is any relevant information. 

    Tuesday, November 19, 2019 9:24 PM