set backup agent edition *after* adding MBS user
This commit is contained in:
@@ -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 }
|
||||
Reference in New Issue
Block a user