fix
This commit is contained in:
@@ -42,8 +42,8 @@ Try {
|
||||
LogMsg "Getting Atera agent and custom field information"
|
||||
Set-AteraAPIKey -APIKey $AteraAPIKey
|
||||
$AteraAgent = Get-AteraAgent
|
||||
$MSP360Username = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Username'
|
||||
$MSP360Password = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password'
|
||||
$MSP360Username = $(Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Username').ValueAsString
|
||||
$MSP360Password = $(Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password').ValueAsString
|
||||
$MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force
|
||||
LogMsg "Adding backup user account: ${MSP360Username}"
|
||||
Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
|
||||
|
||||
Reference in New Issue
Block a user