MSBTS_HostInstance.Install Method


Installs a service for the given instance of the BizTalk host.

Method Declaration

The syntax shown is language neutral.

uint32 Install(string Logon, string Password, boolean GrantLogOnAsService);  


String containing the logon information used by the host instance.

String containing the password for the host.

Boolean determining whether the 'Log On As Service' privilege should be automatically granted to the specified logon user or not. This flag only has effect when the HostType property is set to In-process.

Boolean determining whether the logon account is a Group Managed Service Account. If true, the password can be empty. This parameter is only available for BizTalk 2020 and above.

Return Value

This method returns an HRESULT indicating whether the method completed successfully.


For samples illustrating the MSBTS_HostInstance class, see WMI Script Samples.


Header: Declared in BTSWMISchemaXP.mof.

Namespace: Included in \root\MicrosoftBizTalkServer.