Skip to content

Instantly share code, notes, and snippets.

@heathseals
Created May 20, 2010 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heathseals/cbc35dbbfb3f52699acd to your computer and use it in GitHub Desktop.
Save heathseals/cbc35dbbfb3f52699acd to your computer and use it in GitHub Desktop.
Adding scripts to a Recovery Plan in a call out
When you add a script to a call out in a recovery plan, it is an empty dialog. Use the information
below to add a script that will work as expected. It is important to understand that the scripts or
commands must be in the path on the SRM server.
* Use full paths to all executables – for example “c:\windows\system32\cmd.exe” instead
of “cmd.exe”.
* You can use .exe or .com files only! Command line scripts can only call executables.
* To run a batch file you should start the shell command with
“c:\windows\system32\cmd.exe”. So it would look like “c:\windows\system32\cmd.exe
/c c:\scripts\alarmscript.bat”.
These scripts are executed under the Local Security authority of the SRM server. In addition they
can be stored where you like but likely best to have them on the local SRM disk and not on a
remote network share.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment