New-JobTrigger assistance

Welcome Forums General PowerShell Q&A New-JobTrigger assistance

Viewing 1 reply thread
  • Author
    Posts
    • #188158
      Participant
      Topics: 4
      Replies: 6
      Points: 79
      Rank: Member

      Hey y'all.  I am trying to implement a PS Job where I am looking for the creation of a file in a folder reported to the EventLog to trigger a script.  I know I can do this using Task Scheduler, but I want to gain the functionality of PS jobs.  I have Googled, searched here, and combed through the MS documentation.  Does anyone have an idea or can give me a lead on tracking down this solution?

      Thanks in advance,

      Eric

       

      *Edit: Clarified the event would be from the EventLog

    • #188179
      Senior Moderator
      Topics: 8
      Replies: 1141
      Points: 3,926
      Helping Hand
      Rank: Community Hero

      have you heard about file system watcher, if not, below blog post will be very helpful here.

      https://powershell.one/tricks/filesystem/filesystemwatcher

      • #189382
        Participant
        Topics: 4
        Replies: 6
        Points: 79
        Rank: Member

        @kvprasoon, The article you referenced was exactly what I needed. I implemented it and it works perfectly. Thank you.

Viewing 1 reply thread
  • The topic ‘New-JobTrigger assistance’ is closed to new replies.