Microsoft KB Archive/324524

= How To Use Windows Management Instrumentation to Re-Enable BizTalk Server Receive Functions =

Article ID: 324524

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition
 * Microsoft BizTalk Server 2002 Standard Edition

-



This article was previously published under Q324524



IN THIS TASK
 SUMMARY

Sample Code





SUMMARY
This article describes how to programmatically re-enable all disabled BizTalk Receive functions on your BizTalk Server computer.

back to the top

Sample Code
The following sample code illustrates how to programmatically re-enable all disabled BizTalk Receive functions on your BizTalk Server computer.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

  Paste the following code into Notepad: Dim oLocator, oServices, oRcvFunction, oRcvFunctionInstance Set oLocator = CreateObject(&quot;WbemScripting.SWbemLocator&quot;) Set oServices = oLocator.ConnectServer(,&quot;root/MicrosoftBizTalkServer&quot;) Set oRcvFunction = oServices.Get(&quot;MicrosoftBizTalkServer_ReceiveFunction&quot;) On Error Resume Next For Each oRcvFunctionInstance in oRcvFunction.Instances_ With oRcvFunctionInstance .DisableReceiveFunction = False .Put_ (1) 'wbemChangeFlagUpdateOnly End With Next

Set oLocator = Nothing Set oServices = Nothing Set oRcvFunction = Nothing Set oRcvFunctionInstance = Nothing  Use a .vbs (Visual Basic Script) extension when you save the file. Double-click the saved file to re-enable all Receive functions on your BizTalk Server computer.

back to the top

Additional query words: wmi

Keywords: kbhowto KB324524

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.