January 18, 2010

How to Change the WSS Site for TFS

Filed under: TFS — Tags: , , — Tim Lefler @ 2:07 pm

I had to recently change the name of the SharePoint site that Team Foundation Server (TFS) pointed to for creation of the collaboration site.

On your new moss server you will still need the WSS Ext for SharePoint Installed and you will need to run the “tsconfigwss.exe to make shure SharEPoint is familiar with the location of the TFS report server.

To make TFS point to the new SharePoint site…..

TFS has a handy utility called “tfsadminutil” that allows you to change the URIs associated witht he TFS installation.

TFSAdminUtil ConfigureConnections [/View] [/proxy] [/ClientCertificate: (user|computer)] [/ATUri:<uri>] [/PublicATUri:<uri>] 
[/SharepointUri:<uri>] [/SharepointSitesUri:<uri>] [/SharepointAdminUri:<uri>] [/SharepointUnc:<unc>] [/TswaUri:<uri>]

Argument Description
user Use with /clientcertificate option to specify to use the user certificate store.
computer Use with /clientcertificate option to specify it to use the computer certificate store.
URI Use to set the uniform resource indicator (URI) with the appropriate option.

.

Option Description
/view Displays the current connection settings for Team Foundation Server.
/proxy Runs the command for the Team Foundation Server proxy account.

If the /proxy option is used, only the /clientcertificate option may be used.

/ClientCertificate Specifies the user or computer certificate store to which you want to add a certificate.
/ATUri Specifies the application-tier uniform resource indicator (URI).
/PublicATUri Specifies the URI to use in the text of e-mail alerts.
/SharepointSitesUri Specifies the SharePoint site URI.
/SharepointAdminUri Specifies the SharePoint administrative site URI.
/SharepointUnc Specifies the SharePoint Uniform Naming Convention (UNC) path.
/ReportsUri Specifies the URI for SQL Server Reporting Services. You can view the specific Team Foundation Server reports from this site.
/ReportServerUri Specifies the URI for the ReportService.asmx Web service.
/TswaUri Specifies the URIs for various components of Team System Web Access, if it is installed.

So to change the SharePoint site I’d first use the /view option to see what it was currently pointing at and then use the configureconnections option to set the new URIs.

C:\>tfsadminutil configureconnections /view
TfsAdminUtil - Team Foundation Admin Utility
Copyright (c) Microsoft Corporation.  All rights reserved.
 
 
There is no current VSTS client certificate configured.  This is not an error condition.
Current value for ATUri               = http://TFSSERVER:8080
There is no current setting for PublicATUri.  This is not an error condition.
Current value for SharepointUri       = http://oldmossserver/
Current value for SharepointSitesUri  = http://oldmossserver/sites
Current value for SharepointAdminUri  = http://oldmossserveradmin:1000/_vti_adm/admin.asmx
Current value for SharepointUnc       = \\oldmossserver\sites
Current value for ReportsUri          = http://TFSSERVER/Reports
Current value for ReportServerUri     = http://TFSSERVER/ReportServer/ReportService.asmx
Current value for Team System Web Access Work Item Editor    =
Current value for Team System Web Access Changeset Details    =
Current value for Team System Web Access Difference    =
Current value for Team System Web Access View    =

And to set each of the URIs you would use commands like this:

C:\>tfsadminutil configureconnections /sharepointuri:http://mossserver
TfsAdminUtil - Team Foundation Admin Utility
Copyright (c) Microsoft Corporation.  All rights reserved.
 
Successfully set SharePoint URI to specified value http://mossserver/

Once done check your settings with the view option again.

This command actually changes the the TfsIntegration Database, “tbl_service_interface” table that Team Explorer uses to keep track of the TFS service locations.

I still had some problems with Team Explorer referencing the old location, but after a couple of reboots of the TFS server and the client that problem went away.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress