Error 5009.Registration of BAM performance counters failed.

For the first time, I tried installing BizTalk Server 2006 R2 on Windows Vista. I got the following error:

Error 5009.Registration of BAM performance counters failed. Return code -1.

I did a search on this, and found the following solution:

Run the command "lodctr /r " as administrator. (This rebuilds the performance counter registry.)