PowerTip: Copy Your Script to Notepad Before Editing in Orchestrator

PowerTip: Copy Your Script to Notepad Before Editing in Orchestrator

  • Comments 2
  • Likes

Summary: Easily create a backup before editing in Orchestrator.

Hey, Scripting Guy! Question Ctrl-Z does not work in the Orchestrator editor window, so how can I protect myself if I make a typing error?

Hey, Scripting Guy! Answer Press Ctrl-A then Ctrl-C to copy the content of your script, open Notepad, and paste a backup copy there. Also within Orchestrator, you can (and should) export your runbook before any editing.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Wikipedia notes that "undo" was first added in the 1980's.  Perhaps it is time to add undo functions to Orchestrator!

  • @Nathan

    In all fairness to Systems Center 2012 Orchestrator there *are* actually "undo" options.  For Example, if you make a "booboo" (Can we use that word?) you can choose NOT to check the Runbook back in.  

    I would not be surprised if there were a patch or update released down the line to correct this piece that was forgotten, but for the moment if you make a goof on editing a PowerShell script, remember your good friend the Notepad and also if things go TRULY bad, choose not to check the Runbook back in.

    Don't forget, you can also Export that Runbook before you edit as well.  If you go into the exported file, you can read the original script there in its entirety

    cheers!

    Sean