fix
This commit is contained in:
@@ -42,8 +42,8 @@ Try {
|
|||||||
LogMsg "Getting Atera agent and custom field information"
|
LogMsg "Getting Atera agent and custom field information"
|
||||||
Set-AteraAPIKey -APIKey $AteraAPIKey
|
Set-AteraAPIKey -APIKey $AteraAPIKey
|
||||||
$AteraAgent = Get-AteraAgent
|
$AteraAgent = Get-AteraAgent
|
||||||
$MSP360Username = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Username'
|
$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'
|
$MSP360Password = $(Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password').ValueAsString
|
||||||
$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
|
||||||
|
|||||||
Reference in New Issue
Block a user