We’re currently running a .bat script to do some simple copying of files to another destination, and we’re in the process of updating this to a powershell script, that basicly does the same, but does some additional checks and such first.
I’ve verified that i can run the script manually with when i’m logged in as the user specified in the “run as user”
But when i run a disaster recovery backup, i get the followig error:
Error Code: [7:78] Description: Unable to run [C:\Path_to_Script\Name-of-script.ps1] on the client. Internal Error [150995005] in CVSession while communicating with remote host [Remote system [FQDN of Commcell server]. Remote execute request returned error: [].]. [] Source: commcellserver, Process: startPrePostCmd
Anyone know what could be the issue here ? As far as i can see/understand, there should not be any “Remote System” ?
Best answer by Marek Oplotny
Hi,
I don’t know if it will help you bu we have similar error with running PreScan process with predefined Power Shell script.
I’m not sure for 100% that DR Backup Post Process use same logic as PreScan during normal files backup but I will list all problems and solution we applied.
Running script locally return problems with PowerShell Execution Policy
You can skip this if you didn’t have this problem
If you have, you can change Execution Policy for:
User that running script ether by changing policy to:
RemoteSigned -- easy to apply and prevent from running scripts from internet that are not signed
AllSigned -- hard for apply and prevent from running not signed scripts
Bypass -- easy to apply but allow running any script
You can change PowerShell setting for CurrentUser or LocalMachine
I don’t know if it will help you bu we have similar error with running PreScan process with predefined Power Shell script.
I’m not sure for 100% that DR Backup Post Process use same logic as PreScan during normal files backup but I will list all problems and solution we applied.
Running script locally return problems with PowerShell Execution Policy
You can skip this if you didn’t have this problem
If you have, you can change Execution Policy for:
User that running script ether by changing policy to:
RemoteSigned -- easy to apply and prevent from running scripts from internet that are not signed
AllSigned -- hard for apply and prevent from running not signed scripts
Bypass -- easy to apply but allow running any script
You can change PowerShell setting for CurrentUser or LocalMachine