login vsi company logo login vsi company logo 250x40
header-01.jpg

Creating Your Own Action Items for Login AM

Creating Your Own Action Items for Login AM

A lot of standardized Action Items are already included in Login AM. But we cannot think about everything. The good news is that you can easily extend the functionality on your own. Everything in Login AM is registered via a GUID. So the first thing you need is a GUID, but how do you get one?

You can create a GUID via the following Powershell Command; [guid]::NewGuid() – and create a new folder with the name of this GUID (or rename the GUID from the Action Item CheckForPort). Do not close the PowerShell, because you will need more GUIDS. Now open the template.xml and enter the GUID you just created in the ID field. Also change the Name and Description. Leave the usablePlugins section as is. By doing that you active this Action Item for Deployment and Image Management.

Now change the section <InvocationFunction> and put a name in that will match to the actions that will be done by the Action Item – for example “Invoke-AMActionItemDOWHATYOUWANT”. This is the name of the function you will create later in the PowerShell script. With the Section field you can enter new variables, for each field you also need a new GUID, that you can create with the above mentioned PowerShell command:

     <Field>
         <Id>86b5cc9a-4552-41cf-9d95-b68aedf71d77</Id>
         <Name>Port</Name>
         <IsRequired>True</IsRequired>
         <Type>System.String</Type>

For each value you need to copy past one field section and enter the appropriate values. Save the XML file then. Now you need to change the Powershell Script Invoke-ActionItems.ps1 to your needs. In the Powershell Script there needs to be a function defined. In our example it has the name Invoke-AMActionItemDOWHATYOUWANT. In this function do now the stuff in PowerShell that you want to achieve, using the variables you defined in the template.xml. You can get the variables you defined by the command:

$Port = $($Variables | ? {$_.name -eq "Port"}).Value

In this case I get the value of the variable Port I defined in the XML. Do this for every variable. Then the future Powershell Script can use these variables.

The last thing you will need to do is download a nice icon file – use Google or Iconfinder and search for an icon that symbolizes your action item. Make sure that the size is exactly 16x16 pixels and save this image as Icon.png. This folder you created with all of the stuff you copy into your Login AM file share into the subfolder Config\Actionitems – restart your Login AM and voila you have a new Action Item.

About the author

Tags: How-to, Login AM, Image Management

What our customers are saying

Todd Mace - PernixData

"Login VSI has been a great partner for us. Customers use PernixData with Login VSI to help validate their user experience. Login VSI helps to see what their performance bottlenecks are and our software helps to mediate some of that. Login VSI has been a kind of defacto standard to be able to help that validation and help the customer to be able to come up with a solution to fix it."

Todd Mace, Product Manager at PernixData


Shaun Donaldson - Bitdefender

"As a software vendor, the reason that we became a Login VSI customer is that we wanted to see how we compared to our competitors. After talking to VMware and Citrix about how they test their products, it became clear to me that we needed to follow our strategic partners and be able to show how our product compares favorably to our competitors. We just completed a round of tests using Login VSI and you will see white papers showing performance data."

Shaun Donaldson, Alliances Director at Bitdefender


Maarten Bruijnesteijn - PPG

"We are using Login VSI for hardware scaling. By testing the number of users that can run on our environment, we know the amount of hardware that we will need upfront. We also use Login VSI in our production acceptance process to test changes to the system to evaluate changes to the environment."

Maarten Bruijnesteijn, System Software Analyst at PPG Industries

Login VSI, Inc.

300 Tradecenter

Suite 3460
Woburn, MA 01801

Phone: +1 844 828 3693

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200