Installation instructions:
prerequisites: PowerShell 1.0 installed, BizTalk Server 2006 R2 (haven’t tried R1 yet) installed and configured.
steps:
1. run ‘PowerShell.BizTalk.msi’ and follow instructions.
2. Start a new PowerShell shell.
3. Type the command:
Add-PSSnapin PowerShell.BizTalk
4. Optionally verify that the snap-in is loaded by executing the command:
Get-PSSnapin
You should see the snap-in in the list of loaded snap-ins (see example below).
5. Add a connection to the local BizTalk installation by executing the command:
New-PSDrive LocalBTS BizTalk LocalBTS: -scope global -server <ServerName> -database <DatabaseName>
Replace <ServerName> and <DatabaseName> with the name of the server and database with the name of the management database.
For example: New-PSDrive LocalBTS BizTalk LocalBTS: -scope global -server BizTalk01 -database BizTalkMgmtDb
This will create a new PowerShell drive object pointing to the BizTalk management databases.
Automatically load the snap-in:
Step 3,4 & 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:
1. Create a new folder in your ‘My Documents’ folder. Name this folder ‘WindowsPowerShell’.
2. Create a new text file in the folder created in step 1. Name the file ‘Microsoft.PowerShell_profile.ps1′.
3. Set the contents of the text file like below and save it.
When opening a new shell the snap-in should be loaded automatically.

RSS feed