How to: Examples for Custom Button Actions

Modified on Tue, 9 Sep at 2:40 PM

Type: EXECUTABLE


In the following screenshot we are referring to these five types of data content:


 


TypeExecutable
Execution LocationSelectedDevice
Exe with Path

C:\Program Files (x86)\LANDesk\LDClient\vulscan.exe

Commandline/ShowUI/Autofix=True/maintEnable=False
Check if computer is selected
Selected


TYPE: POWERSHELL


In the following table we are referring to these five type of content:


TypePowershell
Execution Locationselected Device
Powershell Content

$before = Get-TimeZone

$timestamp = get-date

$Message = "<font  size='3' face='Arial Black' color='8000ff'>Device: <b>" + $env:computername + "</b></font>"

$Message = $Message +  "<hr>"

$Message = $Message +  "Timezone : " + $before.id + "<br>"

$Message = $Message +  "Offset : " + $before.BaseUtcOffset + "<br>"

$Message = $Message +  "date and time: " + $timestamp + "</b><br>"

PostMessageInfo $Message

Check if computer is selectedselected


Last Modified Date
08.05.2023


Verified versions
five(9)s Console version 4.2
five(9)s Console version 4.1 or below


Tags
  • Custom Button
  • Powershell
  • exe 

Disclaimer
Even though every care has been taken by five(9)s GmbH to ensure that the information contained in this publication is correct and complete, it is possible that this is not the case. five(9)s GmbH provides the publication "as is", without any warranty for its soundness, suitability for a different purpose or otherwise. five(9)s GmbH is not liable for any damage which has occurred or may occur as a result of or in any respect related to the use of this publication. five(9)s GmbH may change or terminate this publication at any time without further notice and shall not be responsible for any consequence(s) arising there from. Subject to this disclaimer, five(9)s GmbH is not responsible for any contributions by third parties to this publication.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article