Operational Defect Database

BugZero found this defect 2765 days ago.

Veeam | kb2183

PowerShell Script Execution Troubleshooting Advice

Last update date:

12/15/2023

Affected products:

Veeam Backup & Replication

Affected releases:

11

Fixed releases:

No fixed releases provided.

Description:

Purpose

This article is intended to serve as a helpful resource from the Veeam Support team, offering straightforward guidance for those navigating the complexities of troubleshooting script failures. Please note, the advice provided within this article is given in good faith and without warranty. This article provides advice on methods to troubleshoot PowerShell scripts that are executed as part of: Pre-Freeze and Post-Thaw Scripts for vSphere or Hyper-V VMs. Scripts that are configured to run before or after jobs run (e.g., Backup Jobs, Backup Copy Jobs, Replication Jobs, etc.)

Solution

PowerShell Script Execution Details Pre-Freeze and Post-Thaw scripts are: uploaded to the Guest OS of the VM and executed with the command:powershell.exe -ExecutionPolicy ByPass -Command try { . 'C:\Windows\{guid}\<script>.ps1'  -ErrorAction Stop } catch { exit 1 } executed using the account assigned within the Guest Processing settings. Pre-Job and Post-Job scripts are: executed on the Veeam Backup Server using the command:powershell.exe -ExecutionPolicy ByPass -Command  try {& '<path-to-script>'  -ErrorAction Stop } catch { exit 1 } executed using the account assigned to the 'Veeam Backup Service'. By default, that account is 'Local System'.

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Solved

Learn More

Search:

...