#1 Global Leader in Data Resilience

Veeam PowerShell Command Fails With: "Unable to connect to the server with MFA-enabled user account."

KB ID: 4535
Product: Veeam Backup & Replication | 12 | 12.1 | 12.2
Published: 2024-01-03
Last Modified: 2024-01-03
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 attempting to execute Veeam PowerShell commands, the following error occurs:

Unable to connect to the server with MFA-enabled user account.
MFA Error Example

Cause

This error occurs when MFA (Multi-Factor Authentication) is enabled within Veeam Backup & Replication and the account you are logged in as is not designated as a service account.

As noted in the MFA Requirements and Limitations:

MFA is not supported for PowerShell (either interactive logon or non-interactive connections). To use PowerShell cmdlets with Veeam Backup PowerShell Module or Microsoft Windows PowerShell, run the Veeam Backup & Replication console or Microsoft Windows PowerShell under the service account with disabled MFA.

Solution

To enable the execution of PowerShell commands, either run PowerShell as a dedicated service account or disable MFA for your account by temporarily assigning it as a service account.

Note:

  • Once a user has been marked as a service account, MFA is not disabled until the Edit User and Users & Roles windows are closed by clicking OK. The PowerShell window does not need to be reopened if it was open before the change.
  • If you temporarily mark a user as a service account, remember to remove that user's service account status to restore MFA requirements after executing the PowerShell commands.

 

Disable MFA temporarily
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.