login vsi company logo login vsi company logo 250x40

 

Avoid VDI problems. Test with Login VSI.

Learn how our industry-standard software solutions can benefit your business

Learn more about our products

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.

 


 

Start using Login VSI today

Our industry-standard software is built to help you avoid problems, lower costs and improve performance. Request a Quote or get your free Trial below, and benefit from our award-winning services.

Free Price Request  Your Free Trial

 


About the company Login VSI

The company Login VSI provides end-user performance insights for virtualized desktop and server-based computing environments. Enterprise IT departments use flagship product Login VSI (for load testing) and Login PI (for continuity testing) in all phases of their virtual desktop deployment—from planning to deployment to change management—to build and safeguard a good performance, a high availability, and (as a result) a good and consistent end-user experience. For more information about Login VSI or for a free test license contact us.

Tags: How-to, Login AM, Image Management

Popular Blogs

Login VSI officially recognized as an integration partner for WVD by Microsoft

Windows Virtual Desktop

I’m excited to share with you that as of this week Login VSI has officially been recognized as an integration partner for Windows Virtual Desktop (WVD) by Microsoft. Continue Reading
Join us at VMworld 2019 - Booth #866

Join us at VMworld 2019 - Booth #866

Join us at VMworld 2019 - Booth #866 Are you attending VMworld in San Francisco next week? Great, we are too! Continue Reading
State Of The Union Survey Results 2019

State of EUC Survey Results

State of EUC Survey Results At community site VDILIKEAPRO.com we recently surveyed almost 600 people who work in the End User Computing (EUC) industry with a focus on VDI and SBC. Continue Reading
Login VSI at VMworld 2019 - Our Debrief

VMworld 2019 - Our Debrief

VMworld 2019 It’s that time of the year again, we’ve just wrapped up VMworld US and it was great meeting many folks on the expo floor, vendor booths, sessions and of course for a drink in the evening. Continue Reading
Windows Virtual Desktop - Update - December 2019

Windows Virtual Desktop Enhanced in the Latest Update

Planning to move to Windows Virtual Desktop and/or Citrix Managed Desktop? A lot has already been written about Windows Virtual Desktop (WVD) in the last months and while I had my initial concerns on this service many people are suggesting that they are willing to move to a platform like WVD in the next two years. Continue Reading
Login VSI - Blog - 4 Things to Consider when Running Office 365 in the Cloud

4 Things to Consider when Running Office 365 in the Cloud

Recently a customer decided to move their entire VDI infrastructure into the cloud. The VDI environment was approximately 20,000 users. As you can imagine there are a lot of design decisions necessary to ensure the success of this migration. Continue Reading
Cookie Settings