Search notes:

srcsrv.ini

$srcsrv.ini (located in the directory pointed at by the Visual Studio environment variable %DevEnvDir%) stores the path to tf.exe.
[trusted commands]
tf.exe="CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe"

Misc

Apparently, there should be a better solution (Bug 194740).

Index