Change Windows hostname from command-line interface

You can use the following command to change computer’s hostname through the command-line interface:

netdom renamecomputer %COMPUTERNAME% /Newname “NEW-NAME”

Rebuild Team Foundation Server client’s computer cache

You can force a rebuild of the cache on each client computer the next time the client computer connects to a team project collection by using the witadmin rebuildcache command.

To prevent workspace errors from occurring during version control or build operations in Team Foundation, the data cache on client computers must be updated after certain maintenance operations. After you move, restore, rename, or fail over a data-tier or application-tier server, you must refresh the cache for tracking work items and users must refresh the version control cache on client computers.

The following is the syntax of the witadmin rebuildcache command:

witadmin rebuildcache /collection:CollectionURL [/noprompt]

Example:
The following command invalidates the metadata cache for all clients that connect to Tfs_DefaultCollection that is defined on the server that is named TfsServer. The client caches are updated the next time they connect to the project collection.

witadmin rebuildcache /collection:http://TfsServer:8080/tfs/Tfs_DefaultCollection

Configure Team Foundation Server Proxy <Servers> nodes

The <Servers> node contains one or more nodes that correspond to one or more instances of Visual Studio Team Foundation Server or team project collections from which the proxy server caches files.

Each <Server> node contains a <Uri> node that specifies either a computer that is running Team Foundation Server or a single team project collection on Team Foundation Server.

1) If you specify a computer that is running Team Foundation Server, the proxy can cache files from all collections on that server.

2) If you specify a single team project collection, the proxy can cache files only from that collection.

Example 1:
The <Servers> node might resemble the following example if the proxy were caching version control files from every collection on a server that is named TfsServer, using the default values for port and virtual directory:


<Servers>
 <Server>
  <Uri>
  http://tfsserver:8080/Tfs
  </Uri>
 </Server>
</Servers>

Example 2:
The <Servers> node might resemble the following example if the proxy were caching version control files from Tfs_DefaultCollection on a server that is named TfsServer, using the default values for port and virtual directory:


<Servers>
 <Server>
  <Uri>
  http://tfsserver:8080/Tfs/Tfs_DefaultCollection
  </Uri>
 </Server>
</Servers>

How to clear the Team Foundation Server 2010/2012/2013 cache on client machines?

You just need to save the following content to a .bat file and execute on the saved .bat file on the client machine.

REM **********************************************************
REM Script for clearing Team Explorer 2010/2012/2013 cache
REM **********************************************************

REM **********************************************************
REM Change directory to the Team Foundation Server 2010 client cache
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\3.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

REM **********************************************************
REM Change directory to the Team Foundation Server 2012 client cache (ignore if it does not exist)
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\4.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

REM **********************************************************
REM Change directory to the Team Foundation Server 2013 client cache (ignore if it does not exist)
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\5.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

ECHO “All Done!”

How to clear the Team Foundation Server 2013 cache on client machines?

You just need to save the following content to a .bat file and execute on the saved .bat file on the client machine.

@echo off
REM **********************************************************
REM Script for clearing Team Explorer 2013 cache
REM **********************************************************

REM **********************************************************
REM Change directory to the Team Foundation Server 2013 client cache
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\5.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

ECHO “All Done!”

How to clear the Team Foundation Server 2012 cache on client machines?

You just need to save the following content to a .bat file and execute on the saved .bat file on the client machine.

@echo off
REM **********************************************************
REM Script for clearing Team Explorer 2012 cache
REM **********************************************************

REM **********************************************************
REM Change directory to the Team Foundation Server 2012 client cache
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\4.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

ECHO “All Done!”

How to clear the Team Foundation Server 2010 cache on client machines?

You just need to save the following content to a .bat file and execute on the saved .bat file on the client machine.

@echo off
REM **********************************************************
REM Script for clearing Team Explorer 2010 cache
REM **********************************************************

REM **********************************************************
REM Change directory to the Team Foundation Server 2010 client cache
REM **********************************************************
cd “%localappdata%\Microsoft\Team Foundation\3.0\Cache\”
for /d %%a in (*_http) do rmdir /s /q %%a

ECHO “All Done!”

Follow

Get every new post delivered to your Inbox.