TFS & Visual Studio ALM - by Neno Loje

(formerly Team System, VSTS)

News

Recent Posts

Community

Tags

Email Notifications

VSTS Blogs

VSTS Community

My Other Blogs

German VSTS Websites

Archives

Change notification delay setting in TFS 2010

As you probably noticed or know already, TFS 2010 by default delays all notifications (aka project alerts) by 2 minutes (as explained here).

You can change the default by setting the following key in the TFS registry (not the Windows Registry on the TFS server) to the desired number of seconds (0 = no delay, 120 = the default of 120 seconds):

/Service/Integration/Settings/NotificationJobDelay = #seconds

To change the value (in this example to 30) in the TFS registry you can use this PowerShell script or the following command line:

tfsreg.exe /server:https://yourtfs:8080/tfs /path:/Service/Integration/Settings/NotificationJobDelay /value:30

TfsReg reads and sets value in the Team Foundation Server registry.

If you don't specify the value parameter, it will print out the current value.

Download the tool from here:

  • For Team Explorer 2010: TfsReg.exe (.ZIP, 3,53 KB)
  • For Team Explorer 2012: TfsReg.exe (.ZIP, 3,56 KB)

Note: You need to restart the IIS app pool that TFS uses, for this change to take effect.

Prerequisite: This tool requires Team Explorer 2010/2012 to be installed.

(Thanks to Chris Sidi for his excellent blog post on this.)

Comments

Ram said:

Thank you for the wonderful tip. However, I have set this by using command line argument, but still, the email gets delivered in the two minute timeframe.

Do I need to restart anything? or am I missing something?

# June 8, 2011 6:38 PM

neno said:

@Ram: Exactly, you need to restart the IIS app pool that TFS uses.

# June 9, 2011 3:58 AM

Willy's Cave said:

Projects News CodedUI ( VSCUG ) project is in the middle of sprint 5 and still focusing on in-depth guidance

# July 31, 2011 6:45 PM