Scripting SQL Agents Jobs using Powershell

  • Comments posted to this topic are about the item Scripting SQL Agents Jobs using Powershell

  • Nice script.

    To get it to run properly I had to comment out lines 9, 13, 39 and 40. /* and */ are not valid in powershell. Lines 39 and 40 probably should have been outside the code tags.

    Also the variable $TypeFolder is never set to a value. What was your intentions for it?

    Bill Soranno
    MCP, MCTS, MCITP DBA
    Database Administrator
    Winona State University
    Maxwell 143

    "Quality, like Success, is a Journey, not a Destination" - William Soranno '92

  • Works very well for just jobs. However, if that job is tied to a Maintenance plan it generates the job part but is worthless without the maintenance plan.

  • Thanks for the script.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply