BizTalk Server General - Simple Redeployment Scripts

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2005 > Simple Redeployment Scripts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Simple Redeployment Scripts
Eric

2005-11-21, 5:51 pm

http://msdn.microsoft.com/library/d...c98635e81dc.asp
This page refers to a "terminate.vbs" script that is found in the Simple
Redeploymnet scripts.
Where is this? Can I download it somewhere?

Thanks
BA

2005-11-22, 7:49 am

This is the script that I use that kills running instances for deployment:

'''''''''code''''''''''''''

'script for killing all currently running BTS services (orchestrations,
messaging, etc)

On Error Resume Next

' Set the name of a computer you wish to connect to
strComputer = @@@@TO DO@@@@

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20


Set objWMIService = GetObject("winmgmts:\\" & strComputer &
"\root\MicrosoftBizTalkServer")
Set colItems = objWMIService.ExecQuery("SELECT * FROM MSBTS_ServiceInstance
where ServiceName <> ''", "WQL", _
wbemFlagReturnImmediately +
wbemFlagForwardOnly)


For Each objItem In colItems
strServiceName = objItem.ServiceName
Set res = objItem.Terminate
if res = 0 then
WScript.Echo strServiceName & vbTab & "Killed"
else
WScript.Echo strServiceName & vbTab & "FAILED: " & res
end if
Next


'''''''''end code''''''''''''''

You can adjust this to kill instances with certain statuses if you want to.
Change @@@@TO DO@@@@ with your computer name

BA


"Eric" <Eric@discussions.microsoft.com> wrote in message
news:FFDDC9AD-95FA-4447-A3E9-03B57C096C59@microsoft.com...
>

http://msdn.microsoft.com/library/d...c98635e81dc.asp
> This page refers to a "terminate.vbs" script that is found in the Simple
> Redeploymnet scripts.
> Where is this? Can I download it somewhere?
>
> Thanks



BA

2005-11-22, 7:49 am


Also note, that article has a download in which you'll find the specific
script you want.

BA


"Eric" <Eric@discussions.microsoft.com> wrote in message
news:FFDDC9AD-95FA-4447-A3E9-03B57C096C59@microsoft.com...
>

http://msdn.microsoft.com/library/d...c98635e81dc.asp
> This page refers to a "terminate.vbs" script that is found in the Simple
> Redeploymnet scripts.
> Where is this? Can I download it somewhere?
>
> Thanks



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com