tf.exe tf history or changeset command getting “Unable to determine the source control server”

We were using command:

tf history “$/ProjectCollection” /noprompt | findstr strtofind

tf changeset “$/ProjectCollection” /noprompt | findstr strtofind

and we were getting error – Unable to determine the source control server.

In TFS 2012 the  key is to to provide connection to the server using web url as well.

So the command which worked for us was:

tf history  /collection:”http://tfsserver:8080/” “$/ProjectCollection” /noprompt | findstr strtofind

tf changeset /collection:”http://tfsserver:8080/” “$/ProjectCollection” /noprompt | findstr strtofind

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s