<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx</link><description>In a previous blog post, Christa gave a high level explanation of the extensibility points we introduced to Session Broker (SB) in Windows Server 2008. In this post, we will dive a bit deeper to see how we can use SB Extensibility to build our own load</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#10163051</link><pubDate>Tue, 10 May 2011 17:39:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10163051</guid><dc:creator>Christa Anderson</dc:creator><description>&lt;p&gt;We&amp;#39;ve released a later version of the broker since this blog post was published and recommend using that platform. Sample code for filter plugins and resource plugins for the RD Connection Broker in WS08 R2 is available from the Downloads section here: &lt;a rel="nofollow" target="_new" href="http://archive.msdn.microsoft.com/rdsdev"&gt;archive.msdn.microsoft.com/rdsdev&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Christa&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10163051" width="1" height="1"&gt;</description></item><item><title>re: TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#10163048</link><pubDate>Tue, 10 May 2011 17:34:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10163048</guid><dc:creator>Alex Ski</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;I have also Problems with the Com Addin.&lt;/p&gt;
&lt;p&gt;Have someone a sample code ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10163048" width="1" height="1"&gt;</description></item><item><title>CoCreateInstance failed with error code hr = 0x80040154</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9845298</link><pubDate>Thu, 23 Jul 2009 00:34:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9845298</guid><dc:creator>Francois Dube</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;I am also having the following error :&lt;/p&gt;
&lt;p&gt;NEW INSTANCE&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM INFO: Session Broker plugin is registered &lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM INFO: Loading plug-in &lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM ERROR: CoCreateInstance failed with error code hr = 0x80040154&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM DISJetRecover() begin&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM We have 0 Servers to recover&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM g_RepopulateSession is set to TRUE&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM DeleteJetFiles() begin...&lt;/p&gt;
&lt;p&gt;2000: 17:29:07 PM DeleteJetFiles() ended...&lt;/p&gt;
&lt;p&gt;4180: 17:29:09 PM DISOpenServer() begin...&lt;/p&gt;
&lt;p&gt;4180: 17:29:09 PM DISOpenServer() end...&lt;/p&gt;
&lt;p&gt;2000: 17:29:09 PM Session Broker Active&lt;/p&gt;
&lt;p&gt;2000: 17:30:53 PM Session Broker Stopped&lt;/p&gt;
&lt;p&gt;2000: 17:30:53 PM INFO: Calling UnloadExtensibilityPlugin ...&lt;/p&gt;
&lt;p&gt;2000: 17:30:53 PM INFO: Plugin is totally unloaded&lt;/p&gt;
&lt;p&gt;Can you guys help?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9845298" width="1" height="1"&gt;</description></item><item><title>Sample code?</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9725124</link><pubDate>Thu, 11 Jun 2009 00:56:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9725124</guid><dc:creator>thezoltan</dc:creator><description>&lt;p&gt;Does anyone have any sample code that they would be willing to share? (C++).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9725124" width="1" height="1"&gt;</description></item><item><title>Extending the free Session Broker that's built-in to Windows Server 2008</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9472748</link><pubDate>Fri, 13 Mar 2009 08:43:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9472748</guid><dc:creator>Brian Madden</dc:creator><description>&lt;p&gt;Like many features of Windows Server, the TS Session Broker is a &amp;amp;quot;platform&amp;amp;quot; feature that provides basic functionality, but Microsoft wrote it in such a way that it&amp;amp;#39;s highly extensible. To that end, the Microsoft Terminal Server team has&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9472748" width="1" height="1"&gt;</description></item><item><title>re: TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9431730</link><pubDate>Wed, 18 Feb 2009 19:40:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9431730</guid><dc:creator>Benya</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;I have looked in msdn about Win32_SessionDirectorySession class (its description is in the file &lt;/p&gt;
&lt;p&gt;%systemroot%\system32\wbem\tssdwmi.mof &amp;nbsp;file) in Windows Server 2008 DataCenter.&lt;/p&gt;
&lt;p&gt;When I am using WMI query: SELECT * FROM Win32_SessionDirectorySession&lt;/p&gt;
&lt;p&gt;I receive error: &amp;quot;80041024 Provider is not capable of the attempted operation.&amp;quot;&lt;/p&gt;
&lt;p&gt;In the same time queries to such classes as Win32_SessionDirectoryCluster and Win32_SessionDirectoryServer&lt;/p&gt;
&lt;p&gt;are executing fine.&lt;/p&gt;
&lt;p&gt;But there are some differences of the (Win32_SessionDirectoryCluster, Win32_SessionDirectoryServer) and Win32_SessionDirectorySession interface in the file tssdwmi.mof.&lt;/p&gt;
&lt;p&gt;Maybe I need to install smth for working of Win32_SessionDirectorySession class?&lt;/p&gt;
&lt;p&gt;TS Session Broker &amp;nbsp;is installed and works with queries on the classes Win32_SessionDirectoryCluster and Win32_SessionDirectoryServer.&lt;/p&gt;
&lt;p&gt;Have you any ideas about that?&lt;/p&gt;
&lt;p&gt;Any help would be appreciated!&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9431730" width="1" height="1"&gt;</description></item><item><title>re: TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9395478</link><pubDate>Wed, 04 Feb 2009 14:55:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9395478</guid><dc:creator>holiday</dc:creator><description>&lt;p&gt;УРА!&lt;/p&gt;
&lt;p&gt;I did C++ Session Broker Plugin and it works fine. &lt;/p&gt;
&lt;p&gt;to David - you still have problem with your plugin?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9395478" width="1" height="1"&gt;</description></item><item><title>re: TS Session Broker Extensibility (Part 2)</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#9011164</link><pubDate>Wed, 22 Oct 2008 18:00:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011164</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I've been looking for a way to redirect users to different terminal servers based on their group membership in active directory. The only way I have found is to implement a session broker plugin (is there an easier way?). I have never developed a COM-object before, and unfortunately it was harder to get this thing to work than I had hoped..&lt;/p&gt;
&lt;p&gt;This is what I get in tssdis.log when i start the session broker service:&lt;/p&gt;
&lt;p&gt;NEW INSTANCE&lt;/p&gt;
&lt;p&gt;1604: 1:36:14 AM INFO: Session Broker plugin is registered&lt;/p&gt;
&lt;p&gt;1604: 1:36:14 AM INFO: Loading plug-in&lt;/p&gt;
&lt;p&gt;1604: 1:36:14 AM ERROR: CoCreateInstance failed with error code hr = 0x80040154&lt;/p&gt;
&lt;p&gt;Error 0x80040154 means &amp;quot;Class not registered&amp;quot;. I seem to get this error no matter what I try. &lt;/p&gt;
&lt;p&gt;I tried to make a basic COM server that implements the IWTSSBPlugin interface in Visual C++. I also made a client that calls cocreateinstance and instanciates it without error using the interface ID for IWTSSBPlugin. So why does it say &amp;quot;class not registered&amp;quot; from the session broker service?&lt;/p&gt;
&lt;p&gt;I have given NETWORK SERVICE local access, local activation and local launch permissions in the COM security default settings in dcomcnfg.exe. I have also given NETWORK SERVICE access and launch permissions for my COM server with OLE/COM viewer.&lt;/p&gt;
&lt;p&gt;Under the HKCR\CLSID\&amp;lt;CLSID&amp;gt;\ key in the registry I have:&lt;/p&gt;
&lt;p&gt;(Default) = &amp;lt;name&amp;gt;&lt;/p&gt;
&lt;p&gt;InProcServer32\(Default) = &amp;lt;path to dll&amp;gt;&lt;/p&gt;
&lt;p&gt;InProcServer32\ThreadingModel = &amp;quot;Both&amp;quot;&lt;/p&gt;
&lt;p&gt;I have tried som other settings as well, but as I understand it, this is all that is needed. Does session broker require something else in the registry? It could be something with my COM server implementation, but the error indicates that something is wrong in the registry..&lt;/p&gt;
&lt;p&gt;I also tried to make a CLR based COM server in C# and registered using regasm. The class is clearly registered in the registry, but still the same error from session broker. &lt;/p&gt;
&lt;p&gt;Is there anything wrong with using a CLR based COM server? Does runtime version matter?&lt;/p&gt;
&lt;p&gt;I'm waiting for the example code!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9011164" width="1" height="1"&gt;</description></item><item><title>Extending the free Session Broker that's built-in to Windows Server 2008</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#8970583</link><pubDate>Tue, 30 Sep 2008 21:33:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970583</guid><dc:creator>Brian Madden</dc:creator><description>&lt;p&gt;Like many features of Windows Server, the TS Session Broker is a &amp;amp;quot;platform&amp;amp;quot; feature that provides basic functionality, but Microsoft wrote it in such a way that it&amp;amp;#39;s highly extensible. To that end, the Microsoft Terminal Server team has&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8970583" width="1" height="1"&gt;</description></item><item><title>Microsoft Team Blogs - 22sept to 28 sept 2008</title><link>http://blogs.msdn.com/b/rds/archive/2008/09/25/ts-session-broker-extensibility-part-2.aspx#8968991</link><pubDate>Mon, 29 Sep 2008 17:25:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8968991</guid><dc:creator>Shahed Khan (MVP C#)</dc:creator><description>&lt;p&gt;196 Microsoft Team blogs searched, 97 blogs have new articles in the past 7 days. 218 new articles found...&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8968991" width="1" height="1"&gt;</description></item></channel></rss>