login vsi company logo login vsi company logo 250x40

Quickly Clear Cache with Login AM 2012 Cache Cleaner

Quickly Clear Cache with Login AM 2012 Cache Cleaner

You are probably aware that Login AM will create an entry in the tracking.cache after the application installation is finished. Even when the installation failes this entry is created. To install the application again by Login AM you will have to remove the application entry from the tracking.cache and reboot to start the install phase again. By deleting the entry, Login AM will think the application is new because it is not in the tracking.cache.

A customer of ours asked if it is possible to create a tool that removes an entry from the tracking.cache based on only the servername. This triggered me to create the following tool.

For the GUI I used a program PrimalForms. With PrimalForms it is very easy to create buttons, input fields, tabs etc. When the GUI is created in PrimalForms, use the Export Powershell button to create a powershell script. My GUI looks like this:

login am cache cleaner

Login AM Cache Cleaner

Because the GUI is just a GUI we need to create some actions for the buttons.

Analyze Button

In the code of the Analyze Button I set two variables. The first variable $path2tracking is the path to the cache file. Always use the admin share path without the servername (i.e. C$\S4\workfolder). The second variable $servername will use the servername from the input field.

 $Button_Analyze_On-Click= {
$path2tracking = "c$\s4\workfolder" #Fill in path to tracking.cache via adminshare
$servername = $Input_ServerName.Text #Get servername from inputfield
 #Get TrackingCache Result
$result = Get-Content \\$servername\$path2tracking\tracking.cache
    Foreach ($item in $result) {

The result is shown in a dropdown menu.

dropdown menu

Dropdown menu

Then we have to delete the entry from the cache file. This is done by selecting an entry via de dropdown menu and to click the delete entry button.

#Select entry from tracking.cache, delete and save tracking.cache
 $SelectedItem = $Dropdown_trackingEntry.SelectedItem #Select dropdown item
 $SelectedItem_esc = $SelectedItem -replace "\\","\\" #Changing format
 $result -notmatch "$SelectedItem_esc" | out-file \\$servername\$path2tracking\tracking.cache #Save changed cache file
 #Clear Dropdown menu
 $Dropdown_trackingEntry.Text = ""

The Login AM 2012 Cache Cleaner is available for download at the following location.

Can this tool be used for other purposes? Yes it can, Login AM also uses a printerdrivers.cache file with the same format as the tracking.cache. Just change the path to the cache file.

I hope this tool can make your life a little bit easier when it comes to reinstalling applications with Login AM. Please let me know if this helped.

Tags: How-to, Login AM

Popular Blogs


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