diff --git a/Install-EmberkomCloudBackup.ps1 b/Install-EmberkomCloudBackup.ps1 index cded21b..6bc0ec0 100644 --- a/Install-EmberkomCloudBackup.ps1 +++ b/Install-EmberkomCloudBackup.ps1 @@ -26,7 +26,7 @@ LogMsg "Installing Emberkom Cloud Backup agent" Try { Install-MBSAgent -URL $URL -Force } Catch { LogErr $_.Exception.Message } -## Get agent details and custom fields from Atera +## Add backup user to installed product Try { LogMsg "Getting Atera agent and custom field information" Set-AteraAPIKey -APIKey $AteraAPIKey @@ -40,6 +40,7 @@ Try { Catch { LogErr $_.Exception.Message } ## Set the agent edition +## Note: the product edition must be set *after* the user is added LogMsg "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition""" Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose } Catch { LogErr $_.Exception.Message } \ No newline at end of file