Search
More About This Website

All information is provided "AS IS" with no warranties, and confers no rights

Login
« The "Big Event" - Denver | Main | Branding your blog... »
Saturday
Dec292007

Mass Remove TFS E-Mail Notifications

Recently, I had the need to remove in bulk a bunch of e-mail notifications that had been setup.  Initially you can add notifications using either Team Explorer or using the bissubscribe.exe tool on the TFS server where you pretty much just specify the same info.

bissubscribe can also be used to remove subscriptions as well.  In order to remove them that way you need to know the ID of the subscription.  You can find out the ID by querying the tbl_subscription table in the TfsIntegration database.  You don't want to just remove rows there best to go through the tool.

You can however easily use the query on that table to generate all the bissubscribe commands for you and then just drop them into a script file to run!

Here's a simple SQL query to remove all notifications for a user

select 'bissubscribe /unsubscribe /server tfsservernamehere /id ' + convert(varchar(20),id)
from tbl_subscription where address = 'someuser@somedomain.com'

The output ends up looking like a bunch of the following lines

bissubscribe /unsubscribe /server tfsservernamehere /id 2324

bissubscribe /unsubscribe /server tfsservernamehere /id 2329

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>