Monday, May 14, 2012

Test Attachments Sizes: New feature of TFS Administrators Toolkit

If you have experienced rapid growth of your tfs database size you have hopefully aware of the Test Attachments Cleaner Power tool. If you have used it you probably also noticed that it’s easier to do the cleaning then to find out what’s needs cleaning.

Test Attachments Power tool – Missing pieces
The problem is that you need to know what team project that needs cleaning and what kinds of attachment it has. There are a couple of posts out there with SQL to run against the TFS Production databases, which by the way is not supported.  Once you know what projects to clean and what the attachments data consist of, you can create a command line that calls the test attachments cleaner power tool to do the cleaning.
If you have about 100+ team projects to handle this is far from the best experience. What you really would like is an easy way to:
1)    Find team projects with large attachment sizes.
2)    Analyze the structure of test attachment data.
3)    Select action and kick of the test attachment cleaner power tool.

Test Attachment Sizes window in Tfs Administrators Toolkit
As I manage a couple tfs servers with 100+ team projects I decided to try to fill the gap. The result of my effort is the new Test Attachment Sizes window in Tfs Administrators Toolkit.  It gives you the following features:
•    Breakdown of totals Test Attachments sizes by type and extensions.
•    A sortable list with team project and its total test attachment size
•    Breakdown of team project test attachments by type and extensions
•    Selecting action and calling Test Attachment Cleaner power tool, either direct or generating a bat file

I’ve released an updated version of the Tfs Administrators Toolkit with the new Test Attachments Sizes feature along with some minor fixes at


  1. Hello Mattias, I love this tool but I'm having a little issue with it. In VS 2013 Ultimate with the Update 2 power tools installed (includes Test Attachment Cleaner), the TFS Admin kit doesn't see that the cleaner is installed so I can't run it from there. Is this known? Any workarounds? Maybe it's just me? Thanks

  2. Anonymous, did you ever get a reply?