#1 Global Leader in Data Resilience

Remote execution of a PowerShell script fails when the VeeamBackup SQL database is on a remote SQL Server.

KB ID: 2067
Product: Veeam Backup & Replication
Version: 6.x, 7.x, 8.x
Published: 2015-10-02
Last Modified: 2020-08-13
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

When using a PowerShell script that is intended to remotely execute a command upon the Veeam server, it may fail if the SQL instance that Veeam Backup & Replication is configured to use is on a different server.
 
This KB article applies only if the following two statements are true.
  1. A PowerShell script is attempting to run on the Veeam server from a machine that is not the Veeam server.
  2. The SQL instance where the VeeamBackup database is located is on separate server from the Veeam server.
The following error may also occur for other reasons, this KB only applies if it related to above stated intent.

Error: Microsoft SQL server hosting the configuration database is currently unavailable. Possible reasons are heavy load, networking issue, server reboot, or hot backup. Please wait, and try again later. Error information: SQL server is not available

Cause

CredSSP is not being used to delegate credentials which is causing the query to time out.

Solution

The following cmdlets need to be run in an elevated PowerShell prompt: 
  1. On the server, where PS script is running please do the following:
         Enable-WSManCredSSP -role Client -DelegateComputer "FQDN of the Veeam server"
  2. On the Veeam server please run the following command in PowerShell: 
         Enable-WSManCredSSP -Role Server 
 After this is configured, all scripts run from the remote server must contain the following line:
      $ses = New-PSSession -ComputerName "FQDN of the Veeam server" -Credential $creds -Authentication CredSSP

More Information

Here is an article that discusses how to configure delegated credentials with CredSS:  http://www.ravichaganti.com/blog/powershell-2-0-remoting-guide-part-12-%E2%80%93-using-credssp-for-multi-hop-authentication/
 
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.