Issues with changing MARS Backup agent policy

Occasional Contributor

Hi all,

We are using MARS backup agent to backup our user machines to an Azure Recovery Services Vault, and use PowerShell to apply the settings and backup policy, primarily following this Microsoft guide.

Unfortunately, I've run into an issue that I'm unable to change the backup schedule once it has been initially applied.

According to Microsoft documentation, I should be able to use the following command to remove the existing policy, allowing me to apply a new policy:
> Get-OBPolicy | Remove-OBPolicy


However, this command only seems to pause the existing policy instead of removing it (screenshot here). I can't see any additional switches in the MS docs for Remove-OBPolicy to change the behaviour from pausing to deleting. I am also unable to overwrite the existing policy by trying to set a new one, as it says I need to delete the old one first, or modify the existing one, and I can't seem to find any information on modifying the existing one (screenshot here).


I am unable to edit the policy using the GUI due to machine restrictions in place blocking the MMC plugin that MARS Backup agent uses.


Any suggestions on why the PowerShell code I am using is not working to remove an existing policy, or how I can modify an existing policy?


You can find the entire script that I'm using to set the initial policy at this Pastebin link.


Any help would be greatly appreciated!

1 Reply
best response confirmed by nitvit610 (Occasional Contributor)


Posted this same question to Reddit and received an answer to my question. Posting here in case anyone else comes across the same problem.


Essentially, Remove-OBPolicy will only pause the existing policy unless the -DeleteBackup switch is used (MS doc here).

In my case, I don't think this will work trying to manage the policies for Win10 endpoints in Endpoint Manager due to the -DeleteBackup switch requiring the Azure vault security PIN which is only valid for 5 minutes at a time. 


However, I've not found out how to modify an existing policy without removing the previous one.