BizTalk Server General - BIZTALK AND WMI

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2004 > BIZTALK AND WMI





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 BIZTALK AND WMI
Ximena Cifuentes

2004-12-30, 5:52 pm

I'm tryin to get a list of receive functions in a BTS remote server by using
WMI and the next script

'Dim oLocator, oServices, oRcvFunction, oRcvFunctionInstance
'oLocator = CreateObject("WbemScripting.SWbemLocator")
'oServices = oLocator.ConnectServer("BTSSERVER",
"root/MicrosoftBizTalkServer", "TRANSAR\Biztalk", "MSIOMEGA")
'oRcvFunction =
oServices.Get("MicrosoftBizTalkServer_ReceiveFunction")



'For Each oRcvFunctionInstance In oRcvFunction.Instances_
' With oRcvFunctionInstance
' .DisableReceiveFunction = False
' .Put_(1) 'wbemChangeFlagUpdateOnly
' End With
'Next

But, when the oRcvFunction.Instances_ is called there's an COM interop
exception.
Is there something else I need to install at server in order to communicate
with the server using WMI ?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com