So a few weeks back I was asked this question......
"We have users that have SoftGrid icon caches growing rather than being cleared out. "%APPDATA%\Softgrid Client\Icon Cache". Not sure why, but unchecked, we'll have thousands of ICO files for each user soon."
Its an interesting question and had an interesting answer of the back of it.
There are multiple icon caches. The global one holds icons for machine-wide items, like shortcuts on the common desktop or global file type associations. This is located under (%public%\Documents\SoftGrid Client\Icon Cache) .
The user-specific one is for user-specific icons, like the icons for shortcuts in a user’s profile or personal file type associations. These by default are located under (%appdata%\SoftGrid Client\Icon Cache). If you use the same icon both ways, it will show up in both places. For instance, if you set up a global file type association that uses the Word icon and publish a shortcut to Word on your personal desktop, you’ll see that Word icon in both caches. This is by design.
Also, if you remove an application or shortcut or FTA or anything else that might have an icon associated with it, the SoftGrid application does not remove the icon from the icon cache. The reasoning is that icons are generally small, this is an uncommon thing to do, and you could be using the icon for something else, like a shortcut you published outside of SoftGrid (maybe you just really liked the icon or something). So in some cases this may be the cause of icon cache growth, if customers add and remove a lot of apps with different icons, and you might have to find some way to manually clean those icons up (write a scrip/logon etc) if it’s really a problem alternatively they can raise a case with PSS call to assist in a script.
When it’s trying to figure out if two files represent the same icon, the client just looks at the path the icon came from. It doesn’t try to compare the actual bitmaps. So if you put the same icon in multiple places (e.g. \\server\share\first-copy-of-icon.ico and \\server\share\second-copy-of-same-icon.ico), you’ll end up with duplicates in the icon cache directory on the client.
To put things into a bit of perspective I have approximately 400 or so SoftGrid Applications running on my Vista Client (A lot I know!!!), this equates to around 393 icon files that reside in my user specific icon cache..... this also equals around 14.6MBs..... but I can live with this and if I wanted to amend this I could write a script to clean my icon cache up :)
We recently asked this exact question to our Microsoft account manager. We got the same answer, however we make very heavy use of softgrid in our company and recently we had to clean out the majority of our users AppData folders most of much had over 10,000 icons in them. In total we removed over 50Gb of files.
Scottish & Southern Energy
Thanks for the comment... just to let you know that I have been talking with Kalle about that .... and he may have something up his sleave that will be released soon to http://www.virtualapp.net/ . As soon as it gets released I will ping (Jaqui) and you a mail with details!
Once all the tests are ok I am sure Sir Saunamäki will release to the great wide world.
...and as it happens, it's now released and will be known as "SoftGridProfileJanitor" (available from my site, link is in my name and in Justin's reply) from here on.
Oh, and it does get rid of those nasty SCRIPTBODY -originated .bat -files that have tendency to pile up (swXXXX.bat files) too.
Thats great guys, im off to go grab it now.
We found that the scriptbody bat files got cleared up ok if we let the softgrid tray icon exit cleanly on a users session (ie not having it in the citrix ignore process list) and setting the softgrid tray timeout to 0 seconds. Once we made this change and cleared out the old files we found that the sftray app kept the bat files in check.
No Problem Dave, Hope you enjoy this.... let Jaqui (MS TAM) know if you need anything else.
All the best and enjoy kalle great work.
My problem is with TS Profiles. We have 4 Citrix Presentation servers running SG4.1 SP1. We have a separate TS profile server which store around 2000 profiles. We currently have about 50 apps sequenced. The Icon Cache folder in the user's profile on the TS profile server will contain large numbers of icon files. This cause the profile size to reach the limit ( about 15 MB per user) and a support ticket is generated, meaning we have to clean the user's profile. I have looked at the "SoftGridProfileJanitor.vbs" script, but no idea when to have it run. Has anyone else run into this issue. I notice a lot of information out there does not address "Softgrid for Terminal Servers" issues.
Scott, if you are using v4 of softgrid then Janitor works by querying the users softgrid store from the registry so will always find the correct folder. We are looking at running it as part of our log off script. The only delay it really causes is the two sftmime commands it runs, but even they dont add that much to the log off sequence.
I'm a naif--computer non-literate.
How do I remove 2 dozen .jpg icon shortcuts that refer to files already removed from my computer running Vista Business?