Would like to run a powershell script automatically monthly

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 5 months ago.

  • Author
    Posts
  • #6285

    by Christopher.Ellis at 2013-02-22 11:43:48

    We want to run a powershell script automatically once a month, can one schedule this with powershell? if so, what command would we use ?

    Thank you

    by kittH at 2013-02-22 12:51:07

    Powershell 3 has a set of commands for creating windows scheduled tasks, you can find information about them here: http://blogs.technet.com/b/heyscripting ... d-job.aspx

    That being said, normally I would just create a task using Windows Task Scheduler and have it run "powershell.exe" with a parameter for the path to your script, "C:\Scripts\PowershellScript.ps1"

    by Christopher.Ellis at 2013-02-23 06:55:40

    I attempted to download the psscheduledjob module from Microsoft web site however, I did not find a download for that module, Am I missing something?

    by Christopher.Ellis at 2013-02-23 13:15:54

    Search via the different forums, and the PSScheduledjob module appears to be in Powershell version 3 only , not version 2

You must be logged in to reply to this topic.