i'm an idiot
This commit is contained in:
@@ -40,7 +40,7 @@ Catch { $_.Exception.Message }
|
|||||||
## Get agent details and custom fields from Atera
|
## Get agent details and custom fields from Atera
|
||||||
Try {
|
Try {
|
||||||
LogMsg "Getting Atera agent and custom field information"
|
LogMsg "Getting Atera agent and custom field information"
|
||||||
Set-AteraAPIKey = $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'
|
||||||
$MSP360Password = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password'
|
$MSP360Password = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password'
|
||||||
|
|||||||
Reference in New Issue
Block a user