I'm having some issues with remoting powershell and veeam and hopefully someone has encountered the same issue.
Code: Select all
$s = New-PSSession -Computername <servername>
Invoke-Command -Session $s -ScriptBlock {Add-PSSnapin VeeamPSSnapIn}
Invoke-Command -Session $s -ScriptBlock {Get-VBRJob}
The error output of the script:
The script is working. I entered the session and manually run the Get-VBRJob command the same error occurs.SQL server is not available
+ CategoryInfo : InvalidOperation: (Veeam.Backup.Po...mmand.GetVBRJob:GetVBRJob) [Get-VBRJob], CAppException
+ FullyQualifiedErrorId : Backup,Veeam.Backup.PowerShell.Command.GetVBRJob
When I run the Get-VBRJob command locally on the server (same account) everything works fine.
Anyone got a clue on resolving this issue?
Thanks