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:

     <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.

Tags: How-to, Login AM, Image Management

Popular Blogs

login-vsi-vdi-performance-summit

The VDI Performance Summit - Virtual Conference and Expo

Visit the VDI Performance Summit to gain knowledge and experience about performance and tuning VDI, improving End-User Experience and IT service. Join us at the ONLY virtual event 100% dedicated to VDI performance and tuning | May 2, 2019 This 1-day event offers key-notes presented by the best VDI performance experts in the world, technical and business oriented breakout sessions, the possibility to chat with experts directly to discuss your own situation, and a virtual exhibit hall featuring… Continue Reading

Scalability testing Parallels Remote Application Server with Login VSI

Recently I went to VMworld in Barcelona where Login VSI had a booth on the expo... While I can’t remember exactly how many conversations I had - there had been so many that I lost my voice on day one. What was new this year is that quite a few people asked if our software is compatible with the solutions from Parallels specifically their Remote Application Server (RAS) (Datasheet). Continue Reading
Login VSI Blog Article - Microsoft Windows 10 Default FTA Associations - Teaser Image

Windows 10 Default File Type Associations and Login VSI

When Login VSI 4.1 was released, the majority of desktops were running Windows 7 and life was easy. We’d set the default filetype for an application and it would simply work. The default and industry standard workloads in Login VSI include launching and using Adobe Reader as part of the virtual user simulation. Because Login VSI doesn’t always know which version of Adobe Reader is installed, or where it’s installed, the workload relies on the file type association (FTA) for .pdf documents to be… Continue Reading
Login VSI - Press Release - IGEL - Login VSI Partner to Optimize End User Computing Experience Image

[Press Release] IGEL Partners with Login VSI to Optimize the End User Computing Experience

Login PI enables organizations to better protect the performance and availability of their IGEL OS-powered virtual desktop environments San Francisco, USA, Feb. 6, 2019: IGEL, a world leader in software-defined endpoint optimization and control solutions for the secure enterprise, today announced that it is partnering with Login VSI, provider of software solutions to test and actively monitor the performance and availability of virtual desktop environments, including VDI and… Continue Reading
Login VSI - Blog - Login PI Blog Teaser Image - Windows Virtual Desktop: How To Monitor User Experience With Login PI

Windows Virtual Desktop – How to Monitor User Experience?

Microsoft has just announced the public preview of their new Windows Virtual Desktop (WVD) offering at Microsoft Ignite on Tour in Amsterdam today. For those of you who’ve not followed the rumors or the private beta, here’s the outline... Continue Reading
Investigating Online Application Performance with Login PI

Investigating Online Application Performance with Login PI

As many companies do, we use a CRM system. Recently, I have been getting complaints about our cloud CRM system, Microsoft Dynamics, being slow. I tried to investigate this by shadowing one of our users to see what was wrong. As expected, everything was fast. 15 minutes later, the same user reported slowness again. How could I investigate this without bothering the users? Continue Reading
Cookie Settings