set backup agent edition *after* adding MBS user

This commit is contained in:
2021-09-24 17:18:03 -04:00
parent ac0e984784
commit fa2063359a
+5 -5
View File
@@ -26,11 +26,6 @@ LogMsg "Installing Emberkom Cloud Backup agent"
Try { Install-MBSAgent -URL $URL -Force }
Catch { LogErr $_.Exception.Message }
## Set the agent edition
LogMsg "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition"""
Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose }
Catch { LogErr $_.Exception.Message }
## Get agent details and custom fields from Atera
Try {
LogMsg "Getting Atera agent and custom field information"
@@ -42,4 +37,9 @@ Try {
LogMsg "Adding backup user account: ${MSP360Username}"
Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
}
Catch { LogErr $_.Exception.Message }
## Set the agent edition
LogMsg "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition"""
Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose }
Catch { LogErr $_.Exception.Message }