don't add account again
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user