Remote WMI call to BizTalk object throws COMException (0x80131904)

时间秒杀一切 提交于 2020-01-06 04:33:10

问题


I'm trying to run an WQL query(SELECT * FROM MSBTS_SendPort) on an BizTalk host but when I run this query in my console application on an remote primary BizTalkHost I get an COMException who says "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."

If I run the same console application on the primary BizTalkHost then everything works.


回答1:


I'm issueing an double-hop authentication issue, so therefore what I want will never work. See this link for more information. My workaround for this issue is to create an wcf-webservice on an biztalk host and let the wcf service handle the WMI query.

If you want to use powershell for remote biztalk administration look at this link.




回答2:


Looks you execute the query on the remote machine as a anonymous user - you have to be in the user context of a user that is authorized to read from the BizTalk Management database.

You could start with trying to run the console application on the remote machine using "run as" and enter the credentials that you probably login as on the BizTalk machine.

If that works you should start looking to impersonation a different user in you code.



来源:https://stackoverflow.com/questions/3683170/remote-wmi-call-to-biztalk-object-throws-comexception-0x80131904

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!