How do I determine what version of TFS is installed?

I would like to determine whether a server has TFS 2005 or TFS 2008 and whether any service pack has been installed. What is the best way to do this?


Solution 1:

This works much better...

http://blogs.msdn.com/b/bharry/archive/2008/01/15/checking-your-tfs-version-and-extending-trials.aspx

Solution 2:

This should help you: http://devmatter.blogspot.com/2007/07/how-to-determine-what-version-of-tfs-is.html