GoreloAction (via PowerShell)

Written By Mikel from Gorelo

Last updated 2 months ago

GoreloAction is a command-line utility that enables PowerShell scripts to interact with Gorelo β€” it currently supports generating alerts and writing to custom asset fields.

Generate alert with GoreloAction

GoreloAction -Alert -Severity <Int> -Name <String> -Description <String> -Suppress <Int>

Parameters

  • -Alert: Specifies alert creation mode

  • -Severity: Sets the severity level (Integer)

    • 1: Critical

    • 2: Error

    • 3: Warning

  • -Name: Title/name of the alert in Gorelo

  • -Description: Detailed description of the alert in Gorelo (optional)

  • -Suppress: Alert suppression duration in hours (optional and defaults to 4, use 0 for no suppression)

Example
GoreloAction -Alert -Severity 1 -Name "NameHere" -Description "DescriptionHere" -Suppress 0

Write to custom asset field with GoreloAction

GoreloAction -SetCustomField -Name <String> -Value <String>

Parameters

  • -SetCustomField: Specifies custom field write mode

  • -Name: Field identifier (format: 'asset.fieldname' β€” remove $gorelo: from the variable)

  • -Value: Data to be stored in the field

Example
GoreloAction -SetCustomField -Name 'asset.rustdeskPassword' -Value "SecurePassword123"