<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BizTalk Messages &#187; PowerShell</title>
	<atom:link href="http://biztalkmessages.vansplunteren.net/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://biztalkmessages.vansplunteren.net</link>
	<description>Randal van Splunteren&#039;s experiences with BizTalk Server and other MS technologies.</description>
	<lastBuildDate>Wed, 25 Aug 2010 18:23:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='biztalkmessages.vansplunteren.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/50e2a3c4778fcfb28176193dbf388723?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>BizTalk Messages &#187; PowerShell</title>
		<link>http://biztalkmessages.vansplunteren.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://biztalkmessages.vansplunteren.net/osd.xml" title="BizTalk Messages" />
	<atom:link rel='hub' href='http://biztalkmessages.vansplunteren.net/?pushpress=hub'/>
		<item>
		<title>PowerShell provider supports BRE deployments</title>
		<link>http://biztalkmessages.vansplunteren.net/2010/03/05/powershell-provider-supports-bre-deployments/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2010/03/05/powershell-provider-supports-bre-deployments/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 08:59:59 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2010/03/05/powershell-provider-supports-bre-deployments/</guid>
		<description><![CDATA[Just a quick link to a post on Maxime’s blog: http://maxime-labelle.spaces.live.com/Blog/cns!D8D9369449D177DA!236.entry Maxime added support for deploying vocabularies and policies to the PowerShell provider for BizTalk. In our opinion this is the easiest way to deploy BRE artefacts. For now it is only available when you grab and build the latest sources. It will be included [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=653&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quick link to a post on Maxime’s blog:</p>
<p><a title="http://maxime-labelle.spaces.live.com/Blog/cns!D8D9369449D177DA!236.entry" href="http://maxime-labelle.spaces.live.com/Blog/cns!D8D9369449D177DA!236.entry">http://maxime-labelle.spaces.live.com/Blog/cns!D8D9369449D177DA!236.entry</a></p>
<p>Maxime added support for deploying vocabularies and policies to the <a href="http://psbiztalk.codeplex.com/" target="_blank">PowerShell provider for BizTalk</a>. In our opinion this is the easiest way to deploy BRE artefacts.</p>
<p>For now it is only available when you grab and build the latest sources. It will be included in the final 1.0 release of course.</p>
<p>Great work Maxime!</p>
<br /> Tagged: <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk/'>BizTalk</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk-management/'>BizTalk Management</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/653/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=653&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2010/03/05/powershell-provider-supports-bre-deployments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>Determine BizTalk version using PowerShell</title>
		<link>http://biztalkmessages.vansplunteren.net/2010/03/04/determine-biztalk-version-using-powershell/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2010/03/04/determine-biztalk-version-using-powershell/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:59:04 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk 2006 R2]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=579</guid>
		<description><![CDATA[I wrote a very simple PowerShell script which allows you to easily determine the installed BizTalk version and service pack level. You cannot just look at the version number anymore because it seems SP1 of BizTalk Server 2006 R2 does not update the version number. This means the version numbers for BizTalk 2006 R2 without [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=579&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wrote a very simple PowerShell script which allows you to easily determine the installed BizTalk version and service pack level.</p>
<p>You cannot just look at the version number anymore because it seems SP1 of BizTalk Server 2006 R2 does not update the version number. This means the version numbers for BizTalk 2006 R2 without and with service pack 1 applied are the same. See also my blog post here.</p>
<p>The script will detect any BizTalk version and service pack from 2004 and later. I have tested it on different environments with different BizTalk versions. Please let me know if it is not working <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Below is the source, but you can also download it from <a href="http://cid-2b880e94db699632.skydrive.live.com/self.aspx/Public/BizTalk%20PowerShell%20Scripts/ShowBTSVersion.ps1" target="_blank">here</a>.</p>
<pre class="brush: powershell;">
# Initialization of helper variables
# BizTalk version numbers
$versionBTS2004 = &quot;3.0.4902.0&quot;
$versionBTS2004SP1 = &quot;3.0.6070.0&quot;
$versionBTS2004SP2 = &quot;3.0.7405.0&quot;
$versionBTS2006 = &quot;3.5.1602.0&quot;
$versionBTS2006R2 = &quot;3.6.1404.0&quot;
$versionBTS2009 = &quot;3.8.368.0&quot;

# BizTalk version description
$descriptionBTS2004 = &quot;BizTalk Server 2004&quot;
$descriptionBTS2004SP1 = &quot;BizTalk Server 2004 with service pack 1&quot;
$descriptionBTS2004SP2 = &quot;BizTalk Server 2004 with service pack 2&quot;
$descriptionBTS2006 = &quot;BizTalk Server 2006&quot;
$descriptionBTS2006R2 = &quot;BizTalk Server 2006 R2&quot;
$descriptionBTS2006R2SP1 = &quot;BizTalk Server 2006 R2 with service pack 1&quot;
$descriptionBTS2009 = &quot;BizTalk Server 2009&quot;

# Registry paths
$bizTalkRegistryPath = &quot;HKLM:\SOFTWARE\Microsoft\BizTalk Server&quot;
$biztalk2006SP1UninstallRegistryPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Biztalk Server 2006 R2 Service Pack 1 `[KB 974563`]'

$installedVersion = $null

# Check if BizTalk is installed:
if ((Test-Path $bizTalkRegistryPath) -eq $true)
{

# Set location to BizTalk registry key
Set-Location $bizTalkRegistryPath
$key = Get-ChildItem

# Get version number
$productVersion = $key.GetValue(&quot;ProductVersion&quot;)

switch ($productVersion)
{

$versionBTS2004 { $installedVersion = $descriptionBTS2004 }
$versionBTS2004SP1 { $installedVersion = $descriptionBTS2004SP1 }
$versionBTS2004SP2 { $installedVersion = $descriptionBTS2004SP2 }
$versionBTS2006 { $installedVersion = $versionBTS2006 }
$versionBTS2006R2
{
if ((Test-Path $biztalk2006SP1UninstallRegistryPath) -eq $false)
{
$installedVersion = $descriptionBTS2006R2
}
else
{
$installedVersion = $descriptionBTS2006R2SP1
}
}
$versionBTS2009 { $installedVersion = $descriptionBTS2009 }
}
}

if ($installedVersion -eq $null)
{
Write-Host &quot;BizTalk Server is not installed on this machine.&quot;
Exit
}

Write-Host &quot;BizTalk Server installation found on this machine.&quot;
Write-Host &quot;Product version number: $productVersion&quot;
Write-Host &quot;Installed version: $installedVersion&quot;
</pre>
<br /> Tagged: <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk/'>BizTalk</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk-2006-r2/'>BizTalk 2006 R2</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/579/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=579&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2010/03/04/determine-biztalk-version-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Provider 1.0 Beta (hotfix)</title>
		<link>http://biztalkmessages.vansplunteren.net/2010/02/25/powershell-provider-1-0-beta-hotfix/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2010/02/25/powershell-provider-1-0-beta-hotfix/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:09:37 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2010/02/25/powershell-provider-1-0-beta-hotfix/</guid>
		<description><![CDATA[A couple of people have reported a nasty bug in the PowerShell Provider version 1.0 Beta. The provider doesn’t seem to work when SQL Server (hosting the BizTalk management database) is on a remote SQL Server. Although we will have this fixed in the 1.0 final release I decided to provide a hotfix right now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=578&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of people have reported a nasty bug in the <a href="http://psbiztalk.codeplex.com/releases/view/35524#DownloadId=91313" target="_blank">PowerShell Provider version 1.0 Beta</a>. The provider doesn’t seem to work when SQL Server (hosting the BizTalk management database) is on a remote SQL Server.</p>
<p>Although we will have this fixed in the 1.0 final release I decided to provide a hotfix right now for those who want to play with the beta and have a remote SQL server. This is major show stopper.</p>
<p>If you want to receive the hotfix please drop me an e-mail (see about page of my blog) and I will send you the fix and instructions a.s.a.p.</p>
<p>As an alternative you can download the latest sources from codeplex and compile them yourself.</p>
<p>The hotfix will also fix other reported <a href="http://psbiztalk.codeplex.com/WorkItem/List.aspx" target="_blank">issues</a>:</p>
<p>- #3042   <br />- #3170    <br />- #3280    <br />- #3390    <br />- #3391    <br />- #3393</p>
<br /> Tagged: <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk/'>BizTalk</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk-management/'>BizTalk Management</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/biztalk-tools/'>BizTalk tools</a>, <a href='http://biztalkmessages.vansplunteren.net/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/578/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=578&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2010/02/25/powershell-provider-1-0-beta-hotfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>Empowering BizTalk in HotRod Magazine</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/12/24/empowering-biztalk-in-hotrod-magazine/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/12/24/empowering-biztalk-in-hotrod-magazine/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 08:19:06 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=561</guid>
		<description><![CDATA[Yesterday the new issue of BizTalk HotRod Magazine was published. Besides other nice content it contains an article on our PowerShell Provider for BizTalk. Tagged: BizTalk, PowerShell<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=561&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday the <a href="http://biztalkhotrod.com/Documents/Issue8_Q4_2009.pdf" target="_blank">new issue</a> of <a href="http://biztalkhotrod.com/default.aspx" target="_blank">BizTalk HotRod Magazine</a> was published. Besides other nice content it contains an article on our <a href="http://psbiztalk.codeplex.com/" target="_blank">PowerShell Provider for BizTalk</a>.</p>
<p><a href="http://biztalkhotrod.com/default.aspx" target="_blank"><img style="border-bottom:0;border-left:0;border-top:0;border-right:0;" border="0" align="left" src="http://biztalkhotrod.com/Images/BizTalkHotrodHeader.JPG" width="319" height="91" /></a></p>
<br /> Tagged: BizTalk, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/561/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=561&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/12/24/empowering-biztalk-in-hotrod-magazine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkhotrod.com/Images/BizTalkHotrodHeader.JPG" medium="image" />
	</item>
		<item>
		<title>Copying your host configuration</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/12/22/copying-your-host-configuration/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/12/22/copying-your-host-configuration/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 14:44:54 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=548</guid>
		<description><![CDATA[Moving your host configuration from one server to another can be daunting and time consuming task. This usually needs to be done when you hand over stuff from development to test, or from test to production. On those environments you mostly want to have the exact same host configuration as you have on your development [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=548&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Moving your host configuration from one server to another can be daunting and time consuming task. This usually needs to be done when you hand over stuff from development to test, or from test to production. On those environments you mostly want to have the exact same host configuration as you have on your development box.</p>
<p>Another option is that a new development team member has just started on a fresh development box and you want him to use the same host configuration that you have. There are a lot of other scenarios where you want to copy the configuration of your hosts and host instances to another machine.</p>
<p>A lot of great BizTalk people have already showed how this can be done in an automated way. Some samples are:</p>
<p>- <a href="http://soa-thoughts.blogspot.com/2009/08/creating-hosts-in-biztalk-script.html" target="_blank">VBScript and WMI</a><br />
- <a href="http://www.biztalkgurus.com/blogs/biztalk/archive/2008/04/30/biztalk-host-creation-and-adapter-assignment-tool-available-for-download.aspx" target="_blank">Custom tool 1</a><br />
- <a href="http://www.codeplex.com/BizTalkAppHostConfig" target="_blank">Custom tool 2</a></p>
<p>In this post I want to show you how this can be done using PowerShell and the <a href="http://psbiztalk.codeplex.com" target="_blank">PowerShell provider for BizTalk</a>. So this is actually the next post in my series on more advanced things you can do with the provider.</p>
<p>I use a slightly different approach compared to the existing tools. I use a PowerShell script that can be executed on the source server. This is the server that already has the host configuration set up, for example a development server. The output of running this script is actually another PowerShell script that you can run on the destination server. This output scripts contains all necessary statements to create the hosts, corresponding host instances and settings.</p>
<p>This is how it works:</p>
<p>- execute the script<br />
- the script prompts for the name and path of the output file:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/12/image9.png" target="_blank"><img style="display:inline;border-width:0;" title="image" src="http://biztalkmessages.files.wordpress.com/2009/12/image_thumb9.png?w=260&#038;h=77" border="0" alt="image" width="260" height="77" /></a></p>
<p>- after a short while the script is finished and a PowerShell script is created. You can run this script on the destination server or send it to an administrator who will run it on another server.</p>
<p>This is the created script:</p>
<pre class="brush: powershell;">

#Determine BizTalk root and switch to host container.
$BizTalkRoot = (get-psdrive -PsProvider BizTalk).Root
Join-Path $BizTalkRoot 'Platform Settings\Hosts' | Set-Location

$RunningServer = $Env:ComputerName
#Create hosts
#Create host 'ReceiveHost' and set properties.
New-Item -Path 'ReceiveHost' -HostType 'InProcess' -NtGroupName 'BizTalk Application Users' -AuthTrusted:$False
Set-ItemProperty -Path 'ReceiveHost' -Name HostTracking -Value False
Set-ItemProperty -Path 'ReceiveHost' -Name Is32BitOnly -Value True

#Create host 'ProcessingHost' and set properties.
New-Item -Path 'ProcessingHost' -HostType 'InProcess' -NtGroupName 'BizTalk Application Users' -AuthTrusted:$False
Set-ItemProperty -Path 'ProcessingHost' -Name HostTracking -Value False
Set-ItemProperty -Path 'ProcessingHost' -Name Is32BitOnly -Value True

#Create host 'SendHost' and set properties.
New-Item -Path 'SendHost' -HostType 'InProcess' -NtGroupName 'BizTalk Application Users' -AuthTrusted:$False
Set-ItemProperty -Path 'SendHost' -Name HostTracking -Value False
Set-ItemProperty -Path 'SendHost' -Name Is32BitOnly -Value False

#Create host 'TrackingHost' and set properties.
New-Item -Path 'TrackingHost' -HostType 'InProcess' -NtGroupName 'BizTalk Application Users' -AuthTrusted:$False
Set-ItemProperty -Path 'TrackingHost' -Name HostTracking -Value True
Set-ItemProperty -Path 'TrackingHost' -Name Is32BitOnly -Value False

#Switch to host instances container.
Join-Path $BizTalkRoot 'Platform Settings\Host Instances' | Set-Location

#Create host instances
#Create host instance 'Microsoft BizTalk Server ReceiveHost BTS2K9-DEV' and set properties.
$Credential = $Host.UI.PromptForCredential('Host Instance user credentials', 'Please enter credentials for host instance ''ReceiveHost''', '', '')
New-Item -Path 'hostinstance' -HostName 'ReceiveHost' -RunningServer $RunningServer -Credentials $Credential
Set-ItemProperty -Path 'Microsoft BizTalk Server ReceiveHost BTS2K9-DEV' -Name IsDisabled -Value False

#Create host instance 'Microsoft BizTalk Server ProcessingHost BTS2K9-DEV' and set properties.
$Credential = $Host.UI.PromptForCredential('Host Instance user credentials', 'Please enter credentials for host instance ''ProcessingHost''', '', '')
New-Item -Path 'hostinstance' -HostName 'ProcessingHost' -RunningServer $RunningServer -Credentials $Credential
Set-ItemProperty -Path 'Microsoft BizTalk Server ProcessingHost BTS2K9-DEV' -Name IsDisabled -Value False

#Create host instance 'Microsoft BizTalk Server SendHost BTS2K9-DEV' and set properties.
$Credential = $Host.UI.PromptForCredential('Host Instance user credentials', 'Please enter credentials for host instance ''SendHost''', '', '')
New-Item -Path 'hostinstance' -HostName 'SendHost' -RunningServer $RunningServer -Credentials $Credential
Set-ItemProperty -Path 'Microsoft BizTalk Server SendHost BTS2K9-DEV' -Name IsDisabled -Value False

#Create host instance 'Microsoft BizTalk Server TrackingHost BTS2K9-DEV' and set properties.
$Credential = $Host.UI.PromptForCredential('Host Instance user credentials', 'Please enter credentials for host instance ''TrackingHost''', '', '')
New-Item -Path 'hostinstance' -HostName 'TrackingHost' -RunningServer $RunningServer -Credentials $Credential
Set-ItemProperty -Path 'Microsoft BizTalk Server TrackingHost BTS2K9-DEV' -Name IsDisabled -Value False
</pre>
<p>There are a couple of things to mention about the generated script:</p>
<p>- This is by no means a script applicable for all situations and environments. The purpose is just to show the output script as a result of running the source script. The source script will probably need some modification to make it apply to your environment. For example the script does not take into account multi server configurations, etc.<br />
- The output script will prompt for credentials for each host instance it will create. There are also ways to script this from source to destination. See for example <a href="http://www.leeholmes.com/blog/ImportingAndExportingCredentialsInPowerShell.aspx" target="_blank">here</a>. In most cases hosts in different environments will run under different accounts which is why I choose to show a prompt each time.<br />
- Also in this script the windows group for the host is kept the same for the destination environment. This might not be the case in your particular situation.</p>
<p>After running this script on the destination server I have a exact copy of my host environment on the source server.</p>
<p>The source script looks like this:</p>
<pre class="brush: powershell;">
$ScriptFile = Read-Host 'Enter full path of script file:'&lt;/pre&gt;
'#Determine BizTalk root and switch to host container.' | Out-File $ScriptFile
'$BizTalkRoot = (get-psdrive -PsProvider BizTalk).Root' | Out-File $ScriptFile -Append
'Join-Path $BizTalkRoot ''Platform Settings\Hosts'' | Set-Location' | Out-File $ScriptFile -Append
'' | Out-File $ScriptFile -Append

'$RunningServer = $Env:ComputerName' | Out-File $ScriptFile -Append

$BizTalkRoot = (get-psdrive -PsProvider BizTalk).Root
Join-Path $BizTalkRoot 'Platform Settings\Hosts' | Set-Location

'#Create hosts' | Out-File $ScriptFile -Append
$HostArray = @()
Get-ChildItem -Path . |  Foreach-Object {
    if (!$_.IsDefault -and $_.HostType -ne 'Isolated') {
   
        $HostArray += $_.Name
   
        &quot;#Create host '$($_.Name)' and set properties.&quot; | Out-File $ScriptFile -Append
        &quot;New-Item -Path '$($_.Name)' -HostType '$($_.HostType)' -NtGroupName '$($_.NtGroupName)' -AuthTrusted:`$$($_.AuthTrusted)&quot; | Out-File $ScriptFile -Append
        &quot;Set-ItemProperty -Path '$($_.Name)' -Name HostTracking -Value $($_.HostTracking)&quot; | Out-File $ScriptFile -Append
        &quot;Set-ItemProperty -Path '$($_.Name)' -Name Is32BitOnly -Value $($_.Is32BitOnly)&quot; | Out-File $ScriptFile -Append
        '' | Out-File $ScriptFile -Append
                   
    }
}

'#Switch to host instances container.' | Out-File $ScriptFile -Append
'Join-Path $BizTalkRoot ''Platform Settings\Host Instances'' | Set-Location' | Out-File $ScriptFile -Append
'' | Out-File $ScriptFile -Append

Join-Path $BizTalkRoot 'Platform Settings\Host Instances' | Set-Location

'#Create host instances' | Out-File $ScriptFile -Append
Get-ChildItem -Path . |  Foreach-Object {
    if ($HostArray -contains $_.HostName) {
      
        &quot;#Create host instance '$($_.Name)' and set properties.&quot; | Out-File $ScriptFile -Append
        &quot;`$Credential = `$Host.UI.PromptForCredential('Host Instance user credentials', 'Please enter credentials for host instance ''$($_.HostName)''', '', '')&quot; | Out-File $ScriptFile -Append
        &quot;New-Item -Path 'hostinstance' -HostName '$($_.HostName)' -RunningServer `$RunningServer -Credentials `$Credential&quot; | Out-File $ScriptFile -Append
        &quot;Set-ItemProperty -Path '$($_.Name)' -Name IsDisabled -Value $($_.IsDisabled)&quot; | Out-File $ScriptFile -Append
         '' | Out-File $ScriptFile -Append
       
    }
}
</pre>
<p>In the script I skip the default and isolated host. As with the generated output script this is just a sample and might not apply to your specific situation. The source script should be modified to confirm to your requirements and environment.</p>
<p>You can download the source script from <a href="http://cid-2b880e94db699632.skydrive.live.com/self.aspx/PowerShell.BizTalk/v1.0.0/Sample%20scripts/Generate-HostScript.ps1" target="_blank">here</a>.</p>
<br /> Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/548/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=548&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/12/22/copying-your-host-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/12/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>BizTalk remote administration</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/11/24/biztalk-remote-administration/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/11/24/biztalk-remote-administration/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:45:35 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/11/24/biztalk-remote-administration/</guid>
		<description><![CDATA[Every application needs management. Ideally an application should provide two ways of management. First an administrator needs a (graphical) console to be able to do single or ad-hoc actions like changing configuration, responding to error conditions, etc. Second there should be a way for an administrator to create and run scripts. Scripts allow administrators to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=521&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every application needs management. Ideally an application should provide two ways of management. First an administrator needs a (graphical) console to be able to do single or ad-hoc actions like changing configuration, responding to error conditions, etc. Second there should be a way for an administrator to create and run scripts. Scripts allow administrators to store a set of repetitive tasks in a container (called a script) in order to be able to easily do the same action over and over again. This is also called automation.</p>
<p>The best way to for any application to support management and automation is to implement such functionality on top of Windows PowerShell. Windows PowerShell contains a comprehensive API which enables the implementation of Cmdlets or a Cmdlet provider and the implementation of custom hosts.</p>
<p><strong><u>Cmdlets or a cmdlet provider        <br /></u></strong>PowerShell has uniform syntax for working with commands working and container hierarchies. This is a great advantage for administrators as they only need to learn a single way of working to manage it all. By implementing cmdlets we can “translate” this PowerShell way of working in calls to an applications native management API. </p>
<p>This is exactly what we have done in the provider for BizTalk. Internally we call BizTalk management APIs like ExplorerOM to perform things like starting applications, exporting MSIs, etc.</p>
<p><strong><u>A custom host        <br /></u></strong>Besides implementing custom cmdlets you can also implement a custom PowerShell host. The host can be any sort of application as long as it implements the PowerShell host interfaces. It can be a Win32 app, a web app or a text console for example.</p>
<p>This is exactly what Microsoft has done in the most recent versions of Exchange server (2007 &amp; 2010). Management is done using PowerShell. The graphical management console is a PowerShell host. Exchange can be managed using this GUI or for example using scripts or commands running in the command shell console that comes out of the box with PowerShell.</p>
<p>The diagram below shows this architecture:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitecturelocal.png" target="_blank"><img style="display:inline;border-width:0;" title="PowerShell architecture local" border="0" alt="PowerShell architecture local" src="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitecturelocal_thumb.png?w=158&#038;h=260" width="158" height="260" /></a> </p>
<p>Things get even more interesting since we have PowerShell 2.0. It has a new feature called remoting which allows for remote administration and automation. Remoting uses WinRm (Microsofts implementation of the WS-Management standard). Goods news is that WinRM is firewall friendly. It only uses http(s) for communication. Now the diagram looks like this:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitectureremote.png" target="_blank"><img style="display:inline;border-width:0;" title="PowerShell architecture remote" border="0" alt="PowerShell architecture remote" src="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitectureremote_thumb.png?w=115&#038;h=260" width="115" height="260" /></a> </p>
<p>Is this secure? Yes it is, both PowerShell and WinRM have been designed with focus on security. Both come out of the box with security enabled. Of course you still need to pay attention especially when exposing things outside the enterprise.</p>
<p><strong><u>Back to BizTalk       <br /></u></strong>For BizTalk we have a couple of options to remotely administer a BizTalk server. We can choose between: Remote Desktop, client installation of Admin console, custom web services for management tasks, etc. Of course all have their pros and cons. With PowerShell remoting we have a new additional option.</p>
<p>Below I’ll show a couple of screens to see how this works.</p>
<p>I used two virtual machines in this demo. I installed the following software on those machines:</p>
<p><u>Virtual machine 1 (name: BTS2K9-dev):</u></p>
<p>- Windows Server 2008 R2 (I know not supported for hosting BizTalk)   <br />- SQL Server 2008    <br />- BizTalk Server 2009    <br />- PowerShell 2.0    <br />- PowerShell provider for BizTalk 1.0 (beta)</p>
<p><u>Virtual machine 2 (name: Client):</u></p>
<p>- Windows Server 2008 R2   <br />- PowerShell 2.0    <br />- PowerShell provider for BizTalk 1.0 (beta)</p>
<p><em>The obvious but important thing to note here is that the only thing that I have installed on virtual machine 2 that is related to BizTalk is the provider. In other words I did NOT NEED ANYTHING from the BizTalk installation CD on this machine.</em></p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/image.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb.png?w=260&#038;h=170" width="260" height="170" /></a> </p>
<p>The first thing I needed to was to enable remoting in PowerShell. This very simple and only requires the execution of a single command &#8216;Enable-PSRemoting’.</p>
<p>&#160;<a href="http://biztalkmessages.files.wordpress.com/2009/11/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb1.png?w=260&#038;h=221" width="260" height="221" /></a> </p>
</p>
<p>Second thing I needed to do was to add the client to the list of trusted computers on the BizTalk box. This mainly needs to be done because I just wanted to communicate over http instead of https for this demo.</p>
<p>On the BizTalk Box the management console is shown. Note that the default host instance is stopped:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/image2.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb2.png?w=260&#038;h=170" width="260" height="170" /></a> </p>
<p>Back to the PowerShell console on the Client to do the following:</p>
<p>- Create a new remote session on the BizTalk Box.   <br />- Add the PowerShell provider snap in to the session.    <br />- Switch to the default BizTalk drive.    <br />- Switch the location to the host instances.    <br />- Start the default host instance.</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/image3.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb3.png?w=260&#038;h=170" width="260" height="170" /></a> </p>
<p>Finally a check on the other box to see if the host instance is running to verify this has worked (need to refresh the admin console first):</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/image4.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb4.png?w=260&#038;h=170" width="260" height="170" /></a> </p>
<p>As you can see in the screen shots this is really easy to do. In my opinion it is a great new, location transparent, firewall friendly, client only way of managing BizTalk Server.</p>
<p>The only thing left to be done is to rebuild the BizTalk Administration Console on top of Windows PowerShell. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<br /> Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/521/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=521&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/11/24/biztalk-remote-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitecturelocal_thumb.png" medium="image">
			<media:title type="html">PowerShell architecture local</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/powershellarchitectureremote_thumb.png" medium="image">
			<media:title type="html">PowerShell architecture remote</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Cleaning your BizTalk development box with PowerShell</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/11/12/cleaning-your-biztalk-development-box-with-powershell/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/11/12/cleaning-your-biztalk-development-box-with-powershell/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 22:02:34 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/11/12/cleaning-your-biztalk-development-box-with-powershell/</guid>
		<description><![CDATA[This is the first in a series of posts where I want to show some more advanced scripts and things you can do with the PowerShell provider for BizTalk. I usually do a lot of tryouts and proof of concepts on my development box. In my urge to get things working I never spend too [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=504&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the first in a series of posts where I want to show some more advanced scripts and things you can do with the <a href="http://psbiztalk.codeplex.com/" target="_blank">PowerShell provider for BizTalk</a>.</p>
<p>I usually do a lot of tryouts and proof of concepts on my development box. In my urge to get things working I never spend too much time on descriptive application names. I also never clean up things after I’m done.</p>
<p>This will in inevitably lead to the following mess after a couple of weeks:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/applications.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="applications" border="0" alt="applications" src="http://biztalkmessages.files.wordpress.com/2009/11/applications_thumb.png?w=210&#038;h=260" width="210" height="260" /></a> </p>
<p>From time to time I feel the need to clean up this mess. I used to do this with the BizTalk Administration Console. I start on top of the list right click the application to first stop and then delete it. Then I go to the second, etc.</p>
<p>The problems start to arise when there are references between applications. If I delete an application that is referenced from another application I get the following warning:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/warning.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="warning" border="0" alt="warning" src="http://biztalkmessages.files.wordpress.com/2009/11/warning_thumb.png?w=260&#038;h=74" width="260" height="74" /></a> </p>
<p>I can still delete the application but the warning is annoying and takes time. The last thing I want is to lose too much time cleaning up <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Things get even worse when there are assembly resources inside the application which are referred to by assembly resources in other applications. This time it is not a warning but a serious error preventing me from deleting the application.</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/error.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="error" border="0" alt="error" src="http://biztalkmessages.files.wordpress.com/2009/11/error_thumb.png?w=260&#038;h=219" width="260" height="219" /></a> </p>
<p>This means I need to take this reference dependency tree into account and delete the “child” applications before their “parents”.</p>
<p>This all makes cleaning up my development box very annoying and time consuming which is probably why I keep postponing it in the first place.</p>
<p>You can nicely automate this procedure using a generic application removal script that uses the <a href="http://psbiztalk.codeplex.com/" target="_blank">PowerShell provider for BizTalk</a>. In the script I take advantage of the exception handling possibilities of PowerShell. I sort of do a “on error resume next”.</p>
<p>This is how the script works:</p>
<ul>
<li>- Build a list of all the applications and put them in a array variable.</li>
<li>- Loop through the list and try to delete the application on top of the list.</li>
<li>- When the deletion fails because of dependencies we catch, in PowerShell terms “trap”, the exception and shuffle the array a little bit so that the application that failed is moved to the bottom of the list.</li>
<li>- We then continue with the application that is now on top of the list.</li>
<li>- The loop will end when all the applications are removed.</li>
</ul>
<p>This is the script:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/script.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="script" border="0" alt="script" src="http://biztalkmessages.files.wordpress.com/2009/11/script_thumb.png?w=260&#038;h=253" width="260" height="253" /></a> </p>
<p>Some details about the script:</p>
<p>In the fragment below we use the provider to get a list of all applications. We make sure exclude the system and default application because they cannot be deleted.</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/detail1.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="detail1" border="0" alt="detail1" src="http://biztalkmessages.files.wordpress.com/2009/11/detail1_thumb.png?w=260&#038;h=37" width="260" height="37" /></a> </p>
<p>The second thing to show in detail is the error handling routine. The provider (or actually the BizTalk Management Classes library) throws an exception of type BtsException since the application is referenced and cannot be deleted. We catch this exception by using a trap statement. In the exception handler we do two things. First we make sure to set a variable in the main scope so that we know what to do with the array later. Either move the top item to the bottom or remove the top item. Second we use “continue;” to have the main routine continue with the next statement.</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/detail2.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="detail2" border="0" alt="detail2" src="http://biztalkmessages.files.wordpress.com/2009/11/detail2_thumb.png?w=260&#038;h=87" width="260" height="87" /></a> </p>
<p>After running the script this is what the admin console shows:</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/11/applications_clean.png" target="_blank"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="applications_clean" border="0" alt="applications_clean" src="http://biztalkmessages.files.wordpress.com/2009/11/applications_clean_thumb.png?w=260&#038;h=144" width="260" height="144" /></a> </p>
<p>Nice!!!!</p>
<p>The script can be downloaded from <a href="http://cid-2b880e94db699632.skydrive.live.com/self.aspx/PowerShell.BizTalk/v1.0.0/Sample%20scripts/Remove-Items.ps1" target="_blank">here</a></p>
<br /> Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/504/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/504/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=504&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/11/12/cleaning-your-biztalk-development-box-with-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/applications_thumb.png" medium="image">
			<media:title type="html">applications</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/warning_thumb.png" medium="image">
			<media:title type="html">warning</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/error_thumb.png" medium="image">
			<media:title type="html">error</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/script_thumb.png" medium="image">
			<media:title type="html">script</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/detail1_thumb.png" medium="image">
			<media:title type="html">detail1</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/detail2_thumb.png" medium="image">
			<media:title type="html">detail2</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/11/applications_clean_thumb.png" medium="image">
			<media:title type="html">applications_clean</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell provider for BizTalk getting started guide</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/11/10/powershell-provider-for-biztalk-getting-started-guide/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/11/10/powershell-provider-for-biztalk-getting-started-guide/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 20:22:48 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/11/10/powershell-provider-for-biztalk-getting-started-guide/</guid>
		<description><![CDATA[For people interested in both PowerShell and BizTalk, I just finished a getting started guide to introduce the basics of the PowerShell provider for BizTalk (version 1.0 beta). The guide can be downloaded from here. Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=489&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For people interested in both PowerShell and BizTalk, I just finished a <em>getting started guide</em> to introduce the basics of the <a href="http://psbiztalk.codeplex.com/" target="_blank">PowerShell provider for BizTalk</a> (version 1.0 beta). The guide can be downloaded from <a href="http://cid-2b880e94db699632.skydrive.live.com/self.aspx/PowerShell.BizTalk/v1.0.0/PSBizTalk%20getting%20started%20guide.pdf" target="_blank">here</a>.</p>
<br /> Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/489/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=489&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/11/10/powershell-provider-for-biztalk-getting-started-guide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Provider 1.0 (Beta) released</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/11/06/powershell-provider-1-0-beta-released/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/11/06/powershell-provider-1-0-beta-released/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 15:25:38 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>
		<category><![CDATA[BizTalk tools]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/11/06/powershell-provider-1-0-beta-released/</guid>
		<description><![CDATA[After a couple of months of hard work (mainly in the evenings ) we are very proud to announce the beta release of the PowerShell provider for BizTalk. The setup (and source) can be downloaded from codeplex. I hope BizTalk developers and administrators will find this a useful addition to their toolbox. In the coming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=487&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a couple of months of hard work (mainly in the evenings <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> ) <a href="http://psbiztalk.codeplex.com/team/view" target="_blank">we</a> are very proud to announce the beta release of the PowerShell provider for BizTalk.</p>
<p>The <a href="http://psbiztalk.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35524" target="_blank">setup</a> (and <a href="http://psbiztalk.codeplex.com/SourceControl/ListDownloadableCommits.aspx" target="_blank">source</a>) can be downloaded from codeplex.</p>
<p>I hope BizTalk developers and administrators will find this a useful addition to their toolbox.</p>
<p>In the coming weeks we will provide more information on usage and show some tips.</p>
<br /> Tagged: BizTalk, BizTalk Management, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=487&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/11/06/powershell-provider-1-0-beta-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>Introducing the BizTalk PowerShell Provider</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/10/29/introducing-the-biztalk-powershell-provider/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/10/29/introducing-the-biztalk-powershell-provider/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:15:21 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/10/29/introducing-the-biztalk-powershell-provider/</guid>
		<description><![CDATA[Maxime wrote a nice post to introduce our PowerShell Provider for BizTalk. You can find it here. There is also a link to a great presentation that they (Michel and Maxime) did at the French BizTalk User Group. The presentation is in the French language. For me that means I had to use the translation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=468&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Maxime wrote a nice post to introduce our PowerShell Provider for BizTalk. You can find it <a href="http://maxime-labelle.spaces.live.com/blog/cns!D8D9369449D177DA!145.entry" target="_blank">here</a>.</p>
<p>There is also a link to a great presentation that they (Michel and Maxime) did at the French BizTalk User Group. The presentation is in the French language. For me that means I had to use the translation dictionary a lot <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<br /> Tagged: BizTalk, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=468&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/10/29/introducing-the-biztalk-powershell-provider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>BizTalk management classes</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/10/01/biztalk-management-classes/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/10/01/biztalk-management-classes/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 01:00:14 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[BizTalk Management]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=454</guid>
		<description><![CDATA[A couple of months ago I joined with Michel Hubert and Maxime Labelle to build the next version of the Powershell provider for BizTalk. (Also see my earlier posts here and here). We´re currently very close to releasing the first beta of this new version. The provider now uses a separate object layer for BizTalk [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=454&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago I joined with Michel Hubert and Maxime Labelle to build the next version of the <a href="http://psbiztalk.codeplex.com/" target="_blank">Powershell provider for BizTalk</a>. (Also see my earlier posts <a href="http://biztalkmessages.vansplunteren.net/2009/05/15/a-new-life-for-my-powershell-provider-for-biztalk/" target="_blank">here</a> and <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/" target="_blank">here</a>).</p>
<p>We´re currently very close to releasing the first beta of this new version.</p>
<p>The provider now uses a separate object layer for BizTalk management tasks. The layer is called ‘BizTalk Factory Management Automation’. This new architecture allows us to focus on provider functionality in the provider codebase and delegate all BizTalk related stuff to the object layer.</p>
<p>Nice things:</p>
<ul>
<li>The object layer hides us from all the different technologies and API’s (WMI, OMExplorer, etc.) that you can come across when doing BizTalk management from code. The object layer is a wrapper around all this stuff and provides a <strong>uniform </strong>way to do BizTalk management from .Net code.</li>
<li>It is not solely aimed and meant for the provider but can be used stand alone or from your own projects.</li>
</ul>
<p>The object layer is already in Beta and can be downloaded from <a href="http://psbiztalk.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33070" target="_blank">here</a>. Samples and instructions on how to use this will be provided later.</p>
<p>A big compliment to Maxime who is mainly responsible for the object layer and did almost all of the coding!</p>
<br /> Tagged: BizTalk, BizTalk Management, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/454/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=454&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/10/01/biztalk-management-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>A new life for my PowerShell provider for BizTalk</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/05/15/a-new-life-for-my-powershell-provider-for-biztalk/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/05/15/a-new-life-for-my-powershell-provider-for-biztalk/#comments</comments>
		<pubDate>Fri, 15 May 2009 14:01:35 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.vansplunteren.net/?p=393</guid>
		<description><![CDATA[A couple of weeks ago I was contacted by Maxime Labelle and Michel Hubert (BizTalk MVP) who accidentally found my PowerShell provider for BizTalk.  The funny coincidence is that they had just finished their own version of the provider without knowing about the existence of mine.   I didn&#8217;t take  much time for us to decide to join [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=393&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago I was contacted by Maxime Labelle and Michel Hubert (BizTalk MVP) who accidentally found my <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/" target="_blank">PowerShell provider for BizTalk</a>.  The funny coincidence is that they had just finished their own version of the provider without knowing about the existence of mine.  </p>
<p>I didn&#8217;t take  much time for us to decide to join forces. We are currently in the process of merging the two source bases and planning for the next release. </p>
<p>I&#8217;m very happy to have the chance to work together with Maxime and Michel on this project. I also think the merge brings benefits like higher (code) quality and  higher release frequency.</p>
<p>This  next release will be the one and only PowerShell provider for BizTalk (I hope) and will be available on <a href="http://psbiztalk.codeplex.com/" target="_blank">codeplex</a>. My version will be downloadable from <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/" target="_blank">here</a> until the first joined effort release is available.</p>
<br /> Tagged: BizTalk, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=393&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/05/15/a-new-life-for-my-powershell-provider-for-biztalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>Create applications using PowerShell provider for BizTalk</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/01/08/create-applications-using-powershell-provider-for-biztalk/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/01/08/create-applications-using-powershell-provider-for-biztalk/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 08:30:28 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[BizTalk tools]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.vansplunteren.net/?p=270</guid>
		<description><![CDATA[I wrote a small article that shows how to create BizTalk applications using my PowerShell provider for BizTalk. You can find it here. Tagged: BizTalk, BizTalk tools, PowerShell<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=270&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wrote a small article that shows how to create BizTalk applications using my PowerShell provider for BizTalk. You can find it <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/powershell-provider-for-biztalk-creating-applications/">here</a>.</p>
<br /> Tagged: BizTalk, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=270&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/01/08/create-applications-using-powershell-provider-for-biztalk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell provider for BizTalk (version 1.0.0)</title>
		<link>http://biztalkmessages.vansplunteren.net/2009/01/06/powershell-provider-for-biztalk-version-100/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2009/01/06/powershell-provider-for-biztalk-version-100/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:58:24 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[BizTalk tools]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/2009/01/06/powershell-provider-for-biztalk-version-100/</guid>
		<description><![CDATA[In an earlier post I wrote about the PowerShell provider for BizTalk that I&#8217;ve been working on in the past months. I&#8217;m very proud to release the very first version now. Please note that this is still a very, very, very early &#8216;alpha&#8217; release. In other words it is full of bugs and not as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=203&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In an earlier <a href="http://biztalkmessages.vansplunteren.net/2008/10/13/powershell-provider-for-biztalk/">post</a> I wrote about the PowerShell provider for BizTalk that I&#8217;ve been working on in the past months. I&#8217;m very proud to release the very first version now. Please note that this is still a <em>very, very, very</em> early &#8216;alpha&#8217; release. In other words it is full of bugs and not as feature rich as I wanted it to be at this time <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>The PowerShell Provider for BizTalk lets you browse BizTalk as a file system. The primary goal for writing this provider is to aid me in my day to day BizTalk development work. With this in mind the first thing I wanted to be able to do is stop, start and restart host instances in an easy manner. I also wanted to replace my <a href="http://biztalkmessages.vansplunteren.net/2008/08/07/biztalk-host-manager-nothing-new/">host manager tool</a> with something with more flexibility. You can read more on host instances and PowerShell <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/powershell-provider-for-biztalk-work-with-host-instances/">here</a>.</p>
<p>Download link can be found <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk">here</a></p>
<p><strong><span style="text-decoration:underline;">Some features:</span></strong></p>
<p>- Browseable BizTalk Adminstration Console like hierarchy and structure of artifacts. Read more <a href="http://biztalkmessages.vansplunteren.net/powershell-provider-for-biztalk/powershell-provider-for-biztalk-browse-artifacts/" target="_blank">here</a></p>
<p>- Tab completion saves you from a lot of typing</p>
<p>- Custom cmdlets aimed at BizTalk.</p>
<p><span style="text-decoration:underline;"><strong>Installation instructions:</strong></span></p>
<p>prerequisites: PowerShell 1.0 installed, BizTalk Server 2006 R2 (haven&#8217;t tried R1 yet) installed and configured.</p>
<p>steps:</p>
<p>1. run &#8216;PowerShell.BizTalk.msi&#8217; and follow instructions.</p>
<p>2. Start a new PowerShell shell.</p>
<p>3. Type the command:</p>
<blockquote><p><strong>Add-PSSnapin PowerShell.BizTalk</strong></p></blockquote>
<p>4. Optionally verify that the snap-in is loaded by executing the command:</p>
<blockquote><p><strong>Get-PSSnapin</strong></p>
<p>You should see the snap-in in the list of loaded snap-ins (see example below).</p></blockquote>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/01/image6.png" target="_blank"><img style="border:0;" src="http://biztalkmessages.files.wordpress.com/2009/01/image-thumb6.png?w=444&#038;h=283" border="0" alt="image" width="444" height="283" /></a></p>
<p>5. Add a connection to the local BizTalk installation by executing the command:</p>
<blockquote><p><strong>New-PSDrive LocalBTS BizTalk LocalBTS: -scope global -server &lt;ServerName&gt; -database &lt;DatabaseName&gt;</strong></p>
<p><em>Replace &lt;ServerName&gt; and &lt;DatabaseName&gt; with the name of the server and database with the name of the management database.</em></p>
<p><em>For example:  New-PSDrive LocalBTS BizTalk LocalBTS: -scope global -server BizTalk01 -database BizTalkMgmtDb</em></p>
<p>This will create a new PowerShell drive object pointing to the BizTalk management databases.</p></blockquote>
<p><span style="text-decoration:underline;"><strong></strong></span> </p>
<p><span style="text-decoration:underline;"><strong>Automatically load the snap-in:</strong></span></p>
<p>Step 3,4 &amp; 5 need to be executed every time you start a new PowerShell and want to use the BizTalk provider. To prevent you from typing the commands every time you can of course create a personal profile script. This will be loaded every time a new PowerShell shell is started. In order to do this:</p>
<p>1. Create a new folder in your &#8216;My Documents&#8217; folder. Name this folder &#8216;WindowsPowerShell&#8217;.</p>
<p>2. Create a new text file in the folder created in step 1. Name the file &#8216;Microsoft.PowerShell_profile.ps1&#8242;.</p>
<p>3. Set the contents of the text file like below and save it.</p>
<p><a href="http://biztalkmessages.files.wordpress.com/2009/01/image7.png" target="_blank"><img style="border-width:0;" src="http://biztalkmessages.files.wordpress.com/2009/01/image-thumb7.png?w=400&#038;h=64" border="0" alt="image" width="400" height="64" /></a></p>
<p>When opening a new shell the snap-in should be loaded automatically.</p>
<p><strong></strong> </p>
<p><strong><span style="text-decoration:underline;">Supported artifacts:</span></strong></p>
<p>Compared to BizTalk Adminstration Console this release of the provider has a limited set of artifacts that are browseable. Also each artifact has less properties than you&#8217;re used to in the console.</p>
<table border="1" cellspacing="0" cellpadding="2" width="386">
<tbody>
<tr>
<td width="147" valign="top"><strong>artifact</strong></td>
<td width="239" valign="top"><strong>artifact supported in v1.0.0</strong></td>
</tr>
<tr>
<td width="151" valign="top">Applications</td>
<td width="238" valign="top">browse (limited properties), create, delete</td>
</tr>
<tr>
<td width="154" valign="top">Orchestrations</td>
<td width="237" valign="top">browse (limited properties)</td>
</tr>
<tr>
<td width="156" valign="top">Role Links</td>
<td width="236" valign="top">-</td>
</tr>
<tr>
<td width="158" valign="top">Send Port Groups</td>
<td width="235" valign="top">-</td>
</tr>
<tr>
<td width="160" valign="top">Send Ports</td>
<td width="235" valign="top">browse (limited properties)</td>
</tr>
<tr>
<td width="161" valign="top">Receive Ports</td>
<td width="234" valign="top">browse (limited properties)</td>
</tr>
<tr>
<td width="162" valign="top">Receive Locations</td>
<td width="234" valign="top">browse (limited properties)</td>
</tr>
<tr>
<td width="163" valign="top">Policies</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Schemas</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Maps</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Pipelines</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Resources</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">BAS Artifacts</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Parties</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Hosts</td>
<td width="234" valign="top">browse (limited properties)</td>
</tr>
<tr>
<td width="163" valign="top">Host Instances</td>
<td width="234" valign="top">browse (limited properties), custom cmdlets to stop, start and restart.</td>
</tr>
<tr>
<td width="163" valign="top">Servers</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Message Boxes</td>
<td width="234" valign="top">-</td>
</tr>
<tr>
<td width="163" valign="top">Adapters</td>
<td width="234" valign="top">-</td>
</tr>
</tbody>
</table>
<p><strong><span style="text-decoration:underline;">Limitations in this version:</span></strong></p>
<p>- The provider makes heavily use of ExplorerOM model. As far as I know this is only supported on 32 bit platforms. So be aware when using the provider on a 64 bit platform.</p>
<p>- The provider does not (yet) (fully) support connections to remote BizTalk installations. Some things like e.g. browse applications work, while other browse host instances will not work.</p>
<p>- Make sure you have enough rights (BizTalk administrator) before using the provider. It does not check role membership or authorizations before executing code so insufficient rights may lead to nasty errors.</p>
<p>- Many other&#8230;&#8230;</p>
<p>Please send me an e-mail or post a comment if you have questions, remarks, bugs, etc&#8230;</p>
<br /> Tagged: BizTalk, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=203&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2009/01/06/powershell-provider-for-biztalk-version-100/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/01/image-thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2009/01/image-thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Powershell provider for BizTalk</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/10/13/powershell-provider-for-biztalk/</link>
		<comments>http://biztalkmessages.vansplunteren.net/2008/10/13/powershell-provider-for-biztalk/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 10:07:22 +0000</pubDate>
		<dc:creator>Randal van Splunteren</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[BizTalk tools]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=48</guid>
		<description><![CDATA[During the last months I&#8217;ve become a big fan of Powershell. It is a great shell which allows you to do things in a very flexible manner. When it comes to BizTalk administration tasks however most of the time you end up writing scripts that use WMI to do things. I would be great if BizTalk [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=48&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>During the last months I&#8217;ve become a big fan of Powershell. It is a great shell which allows you to do things in a very flexible manner. When it comes to BizTalk administration tasks however most of the time you end up writing scripts that use WMI to do things.</p>
<p>I would be great if BizTalk developers or administrators:</p>
<ul>
<li>just could walk through the biztalk artifacts in the same way we do with file folders.</li>
<li>have a (rich) set of powershell cmdlets aimed at BizTalk.</li>
</ul>
<p>In other words we need a: Powershell provider for BizTalk. Searching the internet resulted in nothing. I found one initiative but that did not seem to have started and there were also no downloadable bits.</p>
<p>Anyway I decided to code a BizTalk provider myself. I have copied the artifact hierarchy tree used in the BizTalk Administration Console as much as possible (see screenshots below). The provider also supports tab completion which makes it very easy to navigate through the BizTalk artifacts.</p>
<p style="text-align:center;"><a href="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-1.png"><img class="aligncenter size-large wp-image-50" title="powershell-screenshot-1" src="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-1.png?w=450&#038;h=288" alt="" width="450" height="288" /></a><a href="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-1.png"></a></p>
<p style="text-align:center;"><a href="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-2.png"><img class="size-large wp-image-51 aligncenter" title="powershell-screenshot-2" src="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-2.png?w=450&#038;h=288" alt="" width="450" height="288" /></a></p>
<p>The screenshot below contains an example of a BizTalk cmdlet to stop a specific host.</p>
<p style="text-align:center;"><a href="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-3.png"><img class="aligncenter size-large wp-image-52" title="powershell-screenshot-3" src="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-3.png?w=450&#038;h=288" alt="" width="450" height="288" /></a></p>
<p>Although I&#8217;ve been very, very busy with this in the last couple of weeks there is still a lot of work to be done. So why am I telling you about this when there are no downloadable bits yet. There are two reasons:</p>
<ul>
<li>I hope there are BizTalkers out there that use Powershell and want to test my provider eventually. (If so drop a comment or e-mail).</li>
<li>I want to make a list of first release cmdlets that should be included. (Suggestions? Let me know!)</li>
</ul>
<br /> Tagged: BizTalk, BizTalk tools, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biztalkmessages.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biztalkmessages.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biztalkmessages.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biztalkmessages.vansplunteren.net&amp;blog=3912620&amp;post=48&amp;subd=biztalkmessages&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biztalkmessages.vansplunteren.net/2008/10/13/powershell-provider-for-biztalk/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">biztalkmessages</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-1.png?w=450" medium="image">
			<media:title type="html">powershell-screenshot-1</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-2.png?w=450" medium="image">
			<media:title type="html">powershell-screenshot-2</media:title>
		</media:content>

		<media:content url="http://biztalkmessages.files.wordpress.com/2008/10/powershell-screenshot-3.png?w=450" medium="image">
			<media:title type="html">powershell-screenshot-3</media:title>
		</media:content>
	</item>
	</channel>
</rss>