UPDATE: The code referenced on this page is written in ASP / VB Script. I recently created a complete ASP.net code sample that does everything this code does and more. I would recommend that you check it out by going here: http://blogs.msdn.com/mediasdkstuff/archive/2008/09/26/wmrm-sdk-10-1-2-best-practice-sample-code.aspx