Blog Home  Home |  Breeze Home RSS 2.0 Atom 1.0 CDF  
Mick's Breeze Blogs - Biztalk/Sharepoint/... - BizTalk: Restarting your BTS Hosts - Powershell Style
Things hard and not so hard....
# Wednesday, November 04, 2009

A while back I created a script that restarts your BizTalk Hosts - pretty simple, here http://blogs.breezetraining.com.au/mickb/2006/10/04/SimpleScriptToRestartAllBizTalkServices.aspx
(also this script didn't pick up your service if it was previously stopped - limitation of the 'sc query' command)


Now with PowerShell it's a one line job:
It goes something like this:
get-service BTS* | foreach-object -process {restart-service $_.Name}

You can also set all your BTS Services to start 'automatic' as follows:
get-service BTS* | foreach-object -process {set-service $_.Name -startuptype automatic}
(I'm actually trying to set the BTS Services to 'Automatic (Delayed)' but haven't been able to do that yet)

Enjoy,
Mick.
Wednesday, November 04, 2009 10:54:54 AM (AUS Eastern Daylight Time, UTC+11:00)  #    Comments [0]   BizTalk | 2009 | Insights | Tips  | 
Copyright © 2010 Breeze Training. All rights reserved.