BizTalk Server Setup - Biztalk 2002 and WMI

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Setup > June 2004 > Biztalk 2002 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 2002 and WMI
Vikas Poosala

2004-04-12, 1:36 am

Hi,

I have installed Biztalk Server 2002 on machine A which
uses SQL Server which is installed on machine B. I am
trying to make a WMI query to get the Microsoft Biztalk
Server Group Name from Machine C on Machine A. I am
getting a runtime error. Is this kind of setup supported
for WMI query.

Thanks
Vikas
Jonathan Held [MSFT]

2004-06-29, 5:51 pm

Vikas,

You should be able to perform a WMI query from Machine A. You will want to
connect to WMI running on Machine C from Machine A. To do this, you can do
the following via script (vbs file):

On Error Resume Next
Dim sWbemService, sWbemObjectSet, sWbemObject
Set sWbemService =
GetObject(" winmgmts:\\MachineC\root\MicrosoftBizTal
kServer")
Set sWbemObjectSet = sWbemService.EXecQuery("SELECT * From
MSBTS_GroupSetting")
for each sWbemObject in sWbemObjectSet
MsgBox sWbemObject.Name
next

This will return the BizTalk Server Group name and from here, you can find
out what BizTalk servers are a part of that group. This assumes the
following:

1. The Windows identity that you're logged onto Machine A with can also be
found on Machine C. If not, you'll have to use something similar to the
following to make the connection:

Set objWMIService = objLocator.ConnectServer("MachineC",
"root\MicrosoftBizTalkServer", USERNAME, PASSWORD)

Hope this helps.
Jon




--------------------
Content-Class: urn:content-classes:message
From: "Vikas Poosala" <anonymous@discussions.microsoft.com>
Sender: "Vikas Poosala" <anonymous@discussions.microsoft.com>
Subject: Biztalk 2002 and WMI
Date: Sun, 11 Apr 2004 22:03:38 -0700
Lines: 11
Message-ID: <16b0801c4204b$83ed4ea0$a001280a@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcQgS4Pt6ZFnuNOwRo2duTGJ0SUtRQ==
Newsgroups: microsoft.public.biztalk.setup
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.setup:3471
NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
X-Tomcat-NG: microsoft.public.biztalk.setup

Hi,

I have installed Biztalk Server 2002 on machine A which
uses SQL Server which is installed on machine B. I am
trying to make a WMI query to get the Microsoft Biztalk
Server Group Name from Machine C on Machine A. I am
getting a runtime error. Is this kind of setup supported
for WMI query.

Thanks
Vikas


This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com