don't add account again
This commit is contained in:
@@ -14,12 +14,12 @@ Install-MSP360Module
|
||||
Import-Module -Name MSP360
|
||||
|
||||
# Add backup user to installed product
|
||||
Try {
|
||||
$MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force
|
||||
LogMsg "Adding backup user account: ${MSP360Username}"
|
||||
Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
|
||||
}
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
#Try {
|
||||
# $MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force
|
||||
# LogMsg "Adding backup user account: ${MSP360Username}"
|
||||
# Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
|
||||
#}
|
||||
#Catch { LogErr $_.Exception.Message }
|
||||
|
||||
# Set the agent edition
|
||||
# Note: the product edition must be set *after* the user is added
|
||||
|
||||
Reference in New Issue
Block a user