Set-VBRScriptProcessingOptions
Short Description
Modifies pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRScriptProcessingOptions -Options <VBRScriptProcessingOptions> [-Credentials <CCredentials>] [-ProcessingAction <VBRGeneralProcessingAction>] [-ScriptPrefreezeCommand <String>] [-ScriptPostthawCommand <String>] [-ScriptPreJobCommand <String>] [-ScriptPostJobCommand <String>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies pre-freeze and post-thaw scripts settings for the protected computer OS quiescence.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Specifies the user account credentials with local administrator privileges on the VM guest OS. Veeam Backup & Replication will use these credentials to run pre-freeze and post-thaw scripts. By default, Veeam Agent for Microsoft Windows will use the credentials that you specified for the protection group. Note: This option works for Veeam Agent jobs that back up Windows computers only. |
|
False |
Named |
False |
|
Options |
Specifies script processing options that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
ProcessingAction |
Specifies script processing settings.
Note: The |
|
False |
Named |
False |
|
ScriptPostJobCommand |
Specifies a post-freeze script. |
|
False |
Named |
False |
|
ScriptPostthawCommand |
Specifies the path on your backup server to a local folder with the post-thaw script. |
|
False |
Named |
False |
|
ScriptPrefreezeCommand |
Specifies the path on your backup server to a local folder with the pre-freeze script. |
|
False |
Named |
False |
|
ScriptPreJobCommand |
Specifies a post-thaw script. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRScriptProcessingOptions object that contains pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.
Examples
Modifying Script Processing Settings for Veeam Agent Job (Windows)
This example shows how to modify the existing script processing settings for a Veeam Agent job that backs up Windows computers.
|
$script = New-VBRScriptProcessingOptions -ProcessingAction IgnoreFailures -ScriptPrefreezeCommand "C:\script\pre-script.bat" -ScriptPostthawCommand "C:\script\post-script.bat" Set-VBRScriptProcessingOptions -Options $script -ProcessingAction RequireSuccess |
Perform the following steps:
- Run the
New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs. cmdlet. Set theIgnoreFailuresoption for theProcessingActionparameter. Specify theScriptPrefreezeCommandandScriptPostthawCommandparameter values. Save the result to the$scriptvariable. - Run the
Set-VBRScriptProcessingOptionscmdlet. Set the$scriptvariable as theOptionsparameter value. Set theRequireSuccessoption for theProcessingActionparameter.
Related Commands
New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.