don't add account again

This commit is contained in:
2022-12-16 12:15:18 -05:00
parent 61990346d0
commit 678b808e64
+6 -6
View File
@@ -14,12 +14,12 @@ Install-MSP360Module
Import-Module -Name MSP360 Import-Module -Name MSP360
# Add backup user to installed product # Add backup user to installed product
Try { #Try {
$MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force # $MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force
LogMsg "Adding backup user account: ${MSP360Username}" # LogMsg "Adding backup user account: ${MSP360Username}"
Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password # Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
} #}
Catch { LogErr $_.Exception.Message } #Catch { LogErr $_.Exception.Message }
# Set the agent edition # Set the agent edition
# Note: the product edition must be set *after* the user is added # Note: the product edition must be set *after* the user is added