VeeamHub / veeam-healthcheck

MIT License
63 stars 9 forks source link

Unable to connect to the server with MFA-enabled user account #30

Open jotaveeam opened 4 weeks ago

jotaveeam commented 4 weeks ago

Describe the bug Unable to connect to the server with MFA-enabled user account

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context [28.10.2024 12:10:35] INFO vHC Version: 2.0.0.526 [28.10.2024 12:10:35] INFO Args count = 0 [28.10.2024 12:10:35] INFO [Functions] VBR Version: 12.2.0.334 [28.10.2024 12:10:35] INFO 0s [28.10.2024 12:10:35] INFO Executing GUI [28.10.2024 12:10:36] INFO [Veeam.HC.UI] Selected:Show Explorer = true [28.10.2024 12:10:36] INFO [Veeam.HC.UI] Selected:Interval set to 7 [28.10.2024 12:10:36] INFO Checking processes to determine execution mode.. [28.10.2024 12:10:36] INFO VBR software detected [28.10.2024 12:10:36] INFO Starting Admin Check [28.10.2024 12:10:36] INFO Starting Admin Check...done! [28.10.2024 12:10:36] INFO Changing path from C:\temp\vHC\Original to C:\temp\vHC [28.10.2024 12:10:36] INFO [Veeam.HC.UI] Selected:Scrub = true [28.10.2024 12:10:38] INFO [Veeam.HC.UI] Selected:Open HTML = true [28.10.2024 12:10:40] INFO [Veeam.HC.UI] Selected:Interval set to 30 [28.10.2024 12:10:42] INFO [Veeam.HC.UI] Selected:Accept [28.10.2024 12:10:43] INFO [Veeam.HC.UI] Selected:Run [28.10.2024 12:10:43] INFO User Settings: Scrub = True Open HTML = True Open Explorer = True Path = C:\temp\vHC Interval = 30 [28.10.2024 12:10:43] INFO [Functions] Init Collections [28.10.2024 12:10:43] INFO Starting PS Invoke [28.10.2024 12:10:43] INFO Checking VBR MFA Access... [28.10.2024 12:10:50] ERROR Connect-VBRServer : Unable to connect to the server with MFA-enabled user account. [28.10.2024 12:10:50] ERROR MFA Enabled, please execute the utility from a CMD or PS using a non-MFA enabled account. [28.10.2024 12:10:50] ERROR Script execution has failed. Exiting program. See log for details: C:\temp\vHC\Original\Log\Job.HealthCheck_2024.10.28121035.log

adamcongdon commented 4 weeks ago

Hi, This is expected behavior. Veeam Powershell does not support MFA-enabled accounts and explicitly specifies that Powershell must be ran under a service account with MFA disabled..

This is reflected in the error message above: ERROR MFA Enabled, please execute the utility from a CMD or PS using a non-MFA enabled account.

To get around this, you must run the tool via elevated PS or CMD with a user account that is not MFA enabled.