Scheduled Jobs Storage Location

Welcome Forums General PowerShell Q&A Scheduled Jobs Storage Location

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

 
Keymaster
9 months, 1 week ago.

  • Author
    Posts
  • #91271

    Participant
    Points: 0
    Rank: Member

    Hi!

    I've been creating scheduled jobs and I am wanting to clarify something in regards to the location that the definition file is stored. It looks like by default the definition for the scheduled job and their output gets stored under the user profile:
    "C:\Users\$username\AppData\Local\Microsoft\Windows\PowerShell\ScheduledJobs"

    Can I move the definition and output directories to a shared location like "c:\ScheduledJobs" or would this be less than optimal? I'm thinking the best option would be to run it using a service account and create the job under said service account. This detracts from the visibility that I'm hoping for though. Any advice would be much appreciated.

    Thanks!

  • #91369

    Keymaster
    Points: 1,524
    Helping HandTeam Member
    Rank: Community Hero

    Poking through the source code, I'm not sure you can actually specify a different path.

The topic ‘Scheduled Jobs Storage Location’ is closed to new replies.