Running Script from Task Scheduler

Welcome Forums General PowerShell Q&A Running Script from Task Scheduler

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 1 month ago.

  • Author
  • #90841

    Points: 0
    Rank: Member

    I have a script that works fine as long as it can run in the foreground, or active session. However, if I don't have it set to "Run only when user is logged on" it fails. I would like to get this moved over to unattended on a server. Is there a way to force Scheduler to run the script in the primary session?

  • #90844

    Points: 26
    Rank: Member

    You have to have it set to "Run whether user is logged on or not" and check the "Do not store password." option. Then enter your password (or the password of the service account).

    You can also use PowerShell to register the scheduled tasks. Check out this article:

The topic ‘Running Script from Task Scheduler’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort