User guide

Scripting | 215
Testing PowerShell Scripts
If you want to test the scripts you plan to run, you can do so by using the PowerShell
graphical editor, powershell_is. You also need to add the configuration file,
powershell_ise.exe.config to the same folder the configuration file,
powershell.exe.config.
Input Parameters for PowerShell Scripting
All available input parameters are used in sample scripts. The parameters are
described in the following tables.
AgentProtectionStorageConfiguration (namespace
Replay.Common.Contracts.Agents)
The following table presents the available objects for the
AgentProtectionStorageConfiguration parameter.
The configuration file, powershell_ise.exe.config must have the same content as that of the
powershell.exe.config file.
If the pre-PowerShell or post-PowerShell script fails, the job also fails.
Script files must possess the same name as the sample script files.
Method Description
public Guid RepositoryId { get; set; } Gets or sets the ID of the repository where the
agent recovery points are stored.
public string EncryptionKeyId { get; set; } Gets or sets the ID of the encryption key for this
agent's recovery points. An empty string means no
encryption.