BizTalk WMI Remote Wrapper

I use MgmtClassGen.exe from the SDK.Net Framework to create some WMI shell classes for BizTalk artifacts such as hosts, host instances, etc.

I use HostSetting.GetInstances () to get local hosts (local BizTalk Server). It works great. Now I'm looking for a way to do the same for hosts on another BizTalk machine with a different BizTalk management database name. I cannot find a way to do this using wrapper classes. I need wrapper classes. Any idea how to connect to the BizTalk Management database named "MyManagementDB" on the server "ServerX"?

Thanks in advance!

+3
source share
2 answers

, WMI.

- :

ManagementClass objHostSettingClass = new ManagementClass("root\\MicrosoftBizTalkServer", "MSBTS_HostSetting", null);

. , :

ManagementClass objHostSettingClass = new ManagementClass("\\\\ServerX\\root\\MicrosoftBizTalkServer", "MSBTS_HostSetting", null);

, - WMI MicrosoftBizTalkServer .

Maxime , WMI, , MgmtClassGen.exe.

StaticScope . - , , . Maxime , , StaticScope.

+2

, , WMI, .NET, BizTalk, Microsoft.BizTalk.ExplorerOM.dll. / #. :

BizTalk ?

BizTalk .

0

Source: https://habr.com/ru/post/1721831/


All Articles