You should back up ScriptRunner on a regular basis to ensure a quick recovery of the system. The configuration settings and PowerShell reports are especially important. This information is located on $env:ProgramData\ScriptRunner\ on your ScriptRunner server. You can choose from the following options for regular backups:

  • Snapshot of the ScriptRunner Server VM
  • Windows Backup
  • Third party backup software

Perform the following steps to create a manual backup:

  1. Verify that PowerShell processes of running actions on the ScriptRunner server are active. Open the Task Manager and check processes named
    – SRXPSHost.exe
    – Windows PowerShell
    Note: Also pay attention to PowerShell processes of other programs and users.
  2. Open PowerShell as administrator and stop the ScriptRunner service with Stop-AsrService.
    Note: Make sure PowerShell is closed again.
  3. Backup the directory $env:ProgramData\ScriptRunner\.
  4. If you have changed the default settings, backup the folder Script Library as well.
    Note: You can view your settings in the Admin Web App under the Settings or Script Library main menu.
  5. If changes have been made to the ScriptRunner Web Apps configuration files, backup the uri.js files and the /Custom/ folders in the following directories:
    – $env:ProgramFiles\ScriptRunner\WebApps\AdminApp\
    – $env:ProgramFiles\ScriptRunner\WebApps\DelegateApp\
    – $env:ProgramFiles\ScriptRunner\WebApps\SelfServiceApp\


To manually restore an installation, you need:

  • Setup of the last installed version
  • Backup of the configuration
  • Backup of the Script Library

Follow these steps for the restore:

  1. Install the ScriptRunner service.
  2. Install the ScriptRunner Web Apps.
  3. (Optional) Set up https for the Web Server and for the ScriptRunner service.
  4. Copy the complete $env:ProgramData\ScriptRunner\ directory from the reinstallation to a secure location.
  5. Copy the saved directory $env:ProgramData\ScriptRunner\ from the backup to $env:ProgramData\ScriptRunner\ on the ScriptRunner server.
  6. If changes have been made to the ScriptRunner Web App configuration file uri.js, copy it from the backup to the system, as well as the subfolders \Custom\.
  7. Open PowerShell as administrator and start the ScriptRunner service with Start-AsrService.
  8. Configure the ScriptRunner server and Connector settings with the ScriptRunnerSettings PowerShell module.
  9. Check the Admin Web App, that all items and reports are available.
Suggest Edit