PowerTip: Copy Your Script to Notepad Before Editing in Orchestrator

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.

Comments (2)

  1. @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



  2. Nathan says:

    Wikipedia notes that "undo" was first added in the 1980's.  Perhaps it is time to add undo functions to Orchestrator!

Skip to main content