<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Clint Huffman's Windows Performance Blog : BizTalk</title><link>http://blogs.technet.com/clint_huffman/archive/tags/BizTalk/default.aspx</link><description>Tags: BizTalk</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Helpful PowerShell One-Liners</title><link>http://blogs.technet.com/clint_huffman/archive/2009/03/23/helpful-powershell-one-liners.aspx</link><pubDate>Tue, 24 Mar 2009 08:16:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3217198</guid><dc:creator>clinth@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/clint_huffman/comments/3217198.aspx</comments><wfw:commentRss>http://blogs.technet.com/clint_huffman/commentrss.aspx?PostID=3217198</wfw:commentRss><description>&lt;p&gt;While doing a BizTalk Health check this week, the customer and I thought it would be cool to try to do as much as possible in an interactive PowerShell session to collect the data we needed. We created a lot of PowerShell one-liners and I thought I’d share it. These one-liners use WMI, so nearly all of them can be ran from a remote workstation, so this means that PowerShell is not needed on the remote BizTalk servers unless otherwise noted.&lt;/p&gt;  &lt;p&gt;Be careful of word wrap in this email. All of these commands are *&lt;b&gt;one-liners&lt;/b&gt;* – meaning they all go on one line ;-).&lt;/p&gt;  &lt;p&gt;# List of BizTalk Servers. This is needed, so that the rest of the commands will execute on each of them per command.&lt;/p&gt;  &lt;p&gt;$BizTalkServers = &amp;quot;BizTalkServer1&amp;quot;,&amp;quot;BizTalkServer2&amp;quot;&lt;/p&gt;  &lt;p&gt;# Ping servers (latency check)&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;foreach-object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;ping $_}&lt;/p&gt;  &lt;p&gt;# Pathping (packet loss check)&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;foreach-object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;pathping $_}&lt;/p&gt;  &lt;p&gt;# Get Total Physical Memory&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT TotalPhysicalMemory FROM Win32_ComputerSystem&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;Format-List&lt;/b&gt; TotalPhysicalMemory&lt;/p&gt;  &lt;p&gt;# Installed hotfixes (quick)&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT HotFixID,ServicePackInEffect FROM Win32_QuickFixEngineering&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;Format-list&lt;/b&gt; HotfixID, ServicePackInEffect&lt;/p&gt;  &lt;p&gt;# NumberOfProcessors&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT NumberOfProcessors FROM Win32_ComputerSystem&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;Format-List&lt;/b&gt; NumberOfProcessors&lt;/p&gt;  &lt;p&gt;# System Information&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT Caption, CSDVersion, MaxProcessMemorySize, PAEEnabled, ServicePackMajorVersion FROM Win32_OperatingSystem&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;Format-List&lt;/b&gt; Caption, ServicePackMajorVersion, CSDVersion, MaxProcessMemorySize, PAEEnabled&lt;/p&gt;  &lt;p&gt;# Clock Synchronization Check&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT * FROM Win32_LocalTime&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;format-list&lt;/b&gt; Year, Month, Day, Hour, Minute, Second&lt;/p&gt;  &lt;p&gt;# BizTalk Host Instance information (WMIC) (Must be ran locally) (WMIC is native to the operating system)&lt;/p&gt;  &lt;p&gt;wmic /NAMESPACE:&amp;quot;&lt;a href="file:///\\root\MicrosoftBizTalkServer"&gt;\\root\MicrosoftBizTalkServer&lt;/a&gt;&amp;quot; PATH MSBTS_HostInstance GET HostName, HostType, Logon, NTGroupName, RunningServer&lt;/p&gt;  &lt;p&gt;# BizTalk Host Instance information (PowerShell) (Must be ran locally) (PowerShell must be installed)&lt;/p&gt;  &lt;p&gt;$BizTalkServers | &lt;b&gt;ForEach-Object&lt;/b&gt; {&amp;quot;================&amp;quot;;$_;&amp;quot;================&amp;quot;;&lt;b&gt;Get-wmiobject&lt;/b&gt; &lt;i&gt;-Namespace&lt;/i&gt; &amp;quot;root\MicrosoftBizTalkServer&amp;quot; &lt;i&gt;-Query&lt;/i&gt; &amp;quot;SELECT * FROM MSBTS_Host&amp;quot; &lt;i&gt;-ComputerName&lt;/i&gt; $_} | &lt;b&gt;Format-List&lt;/b&gt; HostName, HostType, Logon, NTGroupName, RunningServer&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3217198" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/clint_huffman/archive/tags/BizTalk/default.aspx">BizTalk</category><category domain="http://blogs.technet.com/clint_huffman/archive/tags/WMI/default.aspx">WMI</category><category domain="http://blogs.technet.com/clint_huffman/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>BizTalk Admin Console Fails with DTC Failures</title><link>http://blogs.technet.com/clint_huffman/archive/2008/12/15/biztalk-admin-console-fails-with-dtc-failures.aspx</link><pubDate>Tue, 16 Dec 2008 04:56:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3169451</guid><dc:creator>clinth@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/clint_huffman/comments/3169451.aspx</comments><wfw:commentRss>http://blogs.technet.com/clint_huffman/commentrss.aspx?PostID=3169451</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Relevant Environment Information:&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;Microsoft BizTalk Server 2006 R2 (32-bit)&lt;/p&gt;  &lt;p&gt;Microsoft Windows Server 2003 R2 (32-bit)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; While doing a BizTalk Health Check with a customer, we encountered errors with the Microsoft Distributed Transaction Coordinator (DTC) while using the BizTalk 2006 R2 Admin Console. I, unfortunately don’t have the exact error any longer, but it mentioned something about unable to contact the DTC service which is a very serious issue because BizTalk is heavily reliant on the DTC service. The odd thing is that the BizTalk services continued to operate normally, so only the admin console was effected by this.&lt;/p&gt;  &lt;p&gt;Looking at the event logs, I found a few errors similar to this one:&lt;/p&gt;  &lt;p&gt;&lt;font face="Segoe UI"&gt;&lt;strong&gt;Category:&lt;/strong&gt; ENTSSO&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;strong&gt;Type:&lt;/strong&gt; Warning      &lt;br /&gt;&lt;strong&gt;Source:&lt;/strong&gt; Enterprise Single Sign-On&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;strong&gt;Event ID:&lt;/strong&gt; 10532      &lt;br /&gt;&lt;strong&gt;Description:&lt;/strong&gt; &amp;quot;Failed to retrieve master secrets. Verify that the master secret server name is correct and that it is available.      &lt;br /&gt;Secret Server Name: &amp;lt;Computer&amp;gt;      &lt;br /&gt;Error Code: 0x800706BF, The remote procedure call failed and did not execute.&amp;quot;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;This error is also a very scary error to get because just like the DTC service, BizTalk is heavily reliant on the Enterprise Single Sign-On service (ENTSSO).&lt;/p&gt;  &lt;p&gt;We called up Microsoft Customer Support Services (CSS) to help us with this. Yes, I am a Microsoft field support professional, but I don’t know everything. ;-) &lt;/p&gt;  &lt;p&gt;CSS had us restart the DTC service on the BizTalk Servers, then restart the Microsoft ENTSSO Master Secret Server. After that, it was working again. No errors in the BizTalk Admin Console.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; The DTC service was restarted and the ENTSSO Master Secret service lost contact with it.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; Restart the DTC service, the restart the ENTSSO Master Secret Service.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Lesson Learned: &lt;/strong&gt;Always restart the ENTSSO Master Secret Service after restarting the DTC service.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;More Information:&lt;/strong&gt; The Enterprise SSO Master Secret key is extremely important. If your ENTSSO service becomes corrupted, then you lose everything. There are certainly *many* more reasons why the ENTSSO Master Secret Service may fail, so always make sure you backup the Master Secret key using SSOManage.exe, backup the key to some place you can get to and where it is not on the local machine, and finally, ensure you remember the restore password.&lt;/p&gt;  &lt;p&gt;&lt;i&gt;All my posts are provided &amp;quot;AS IS&amp;quot; with no warranties, and confer no rights. &lt;/i&gt;&lt;i&gt;For PFE Job Opportunities at Microsoft, please visit our website at: &lt;a href="http://members.microsoft.com/careers/search/default.aspx"&gt;http://members.microsoft.com/careers/search/default.aspx&lt;/a&gt; - search for keyword “PFE”       &lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;b&gt;“PFE: The best place to be at Microsoft” &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3169451" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/clint_huffman/archive/tags/BizTalk/default.aspx">BizTalk</category><category domain="http://blogs.technet.com/clint_huffman/archive/tags/ENTSSO/default.aspx">ENTSSO</category></item></channel></rss>