How to fix MARS backup to Azure from hanging forever when running from the windows 10 scheduler?

Rebecca Christman 20 Reputation points
2024-02-12T20:03:58.72+00:00

I'm using the Microsoft Azure Backup (MARS agent) to backup on premise Windows servers and laptops. It works fine on my server. On the Windows 10 laptops, the scheduled job hangs forever. I found a discussion about this on: https://video2.skills-academy.com/en-us/answers/questions/631093/ms-azure-recovery-services-agent-(mars)-scheduled This Q&A webpage says the arguments for the PowerShell command in the scheduler is missing a closing quote at the end. Also, the task needs to run as 'Windows 10' rather than the default of Windows Vista.

I tried making these two changes, but the scheduled is still hanging.

When I run an immediate backup from the 'Microsoft Azure Backup' console, it works fine. The problem is the scheduled backups. Is there additional information about this problem?

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,256 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
708 questions
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 45,181 Reputation points Microsoft Employee
    2024-02-14T16:20:25.1333333+00:00

    @Rebecca Christman Thanks for sharing the solution with us. This would help other users who may have encountered this issue and looking for solution.

    "Sharing the solution below for the benefit of community"

    Issue: MARS agent scheduled backups on Windows 10 were failing

    Cause: PowerShell execution policy was set to "restricted"

    Resolution: Setting PowerShell LocalMachine ExecutionPolicy to RemoteSigned fixed the problem. The documentation says to set the ExecutionPolicy to Unrestricted. This worked, and also allowed the MARS scheduled jobs to run.

    Hope this helps others on Microsoft Q&A community platform.

    @Rebecca Christman Thanks once again for your time and patience in this matter!


    If the response helped, do "Accept Answer" and up-vote it

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.