login vsi company logo login vsi company logo 250x40

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:


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

Matthias Wessner is a Senior Consultants at our partner Login Consultants in Germany.

Tags: How-to, Login AM, Image Management

Start Delivering the Best End User Experience Today

Request a Demo

Login VSI, Inc.

3945 Freedom Circle
Suite 670
Santa Clara, CA 95054

Phone: +1 408 899 7418

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200