Administering BizTalk with PowerShell: Part 1

As many of you know, BizTalk Server has a fairly extensive WMI object model you can use to manage and run your BizTalk servers. As even more of you know, WMI is a pain in the neck to work with from pretty much anywhere, particularly C#.

However, PowerShell does make it a lot easier and actually even fun, since you can interactively execute and test any WMI query you need to perfection! Given that, it will make a nifty complement to working with BizTalk Server's WMI model. Here's something to open your appettite: List your BizTalk Hosts on the local server:

$hosts = get-wmiobject MSBTS_HostInstance -namespace 'root\MicrosoftBizTalkServer'
$hosts | sort HostName | ft HostName, HostType

I'll demonstrate some more interesting options in later posts!

Comments (2)

Jeffrey SnoverSeptember 1st, 2006 at 8:53 pm

If you like Windows PowerShell’s WMI support now – wait till you see what you get with RC2 (availability is not announced yet).
Check out the details at:
http://blogs.msdn.com/powershell/archive/2006/06/26/647038.aspx
Jeffrey Snover [MSFT]
Windows PowerShell/Aspen Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Tomas RestrepoSeptember 1st, 2006 at 8:56 pm

Hi Jeffrey,
Yep, I’m quite looking forward to it :)
Heck, Actually I’m looking to the actual final bits so I can replace my usual cmd.exe prompt on my desktop with a powershell one :)

Leave a comment

Your comment