WMI访问位于不同域中的服务器 [英] WMI access a server that locates in a different domain

查看:99
本文介绍了WMI访问位于不同域中的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们大多数人都知道只要ComputerA和ComputerB在同一个域中,就可以轻松采用WMI来远程访问一台机器,但是如果计算机A和计算机B在不同的域中呢。

As most of us know that WMI can be easily adopted to remotely access a machine as long as the ComputerA and ComputerB are in the same domain, but what about if the ComputerA and ComputerB are in the different domain.

我在互联网上搜索并遇到这个对象: 
SWbemLocator .ConnectServer
,我从该网站复制了此文本:"如果您连接到其他域中的远程计算机或使用其他用户名和密码,则必须使用

脚本中的SWbemLocator.ConnectServer
方法或
IWbemLocator :: ConnectServer
方法。 "

I was searching on the Internet and come across this object:  SWbemLocator.ConnectServer, and i copied this text from that site: "If you connect to a remote computer in a different domain or using a different user name and password, then you must use the SWbemLocator.ConnectServer method in script or the IWbemLocator::ConnectServer method in C++. "

.net中是否有类似内容?

Are there any similiar in .net?

谢谢

推荐答案

嗨Andie ..

您的方案的一些提示..

Hi Andie..
Some tips for your scenario..

假设计算机A是一个域而B是另一个域。

如果你想连接A-> b使用WMI,首先你可以使用命令1)提示 - >找到B的IP地址。 Ping B

Assume that Computer A is One domain and B is another domain.
if you want to connect A->b Using WMI, first you can find the B's IP address using Command 1) prompt-> Ping B

2)然后复制该IP并打开您的LAN连接状态 - > Genral Tab->选择Internet Protocal(TCP / IP)并单击属性按钮。

3)现在打开Internet Protocal(TCP / IP)属性窗口..

4)在此单击高级按钮和现在高级TCP / IP设置winodw打开..

5)选择DNS选项卡,然后单击添加..按钮

6)现在在此处添加B的IP地址并单击添加,单击确定,单击确定并单击关闭

 

现在您可以连接A-> B而不会出现任何错误。

2) Then copy that IP and open your LAN Connection Status->Genral Tab-> Select Internet Protocal(TCP/IP) and click Properties button.
3) Now Internet Protocal(TCP/IP) properties window opened..
4) In that click Advanced button and now Advanced TCP/IP Settings winodw opened..
5) Select DNS Tab and click Add.. Button
6) Now add that B's IP address here and click add, click ok,click ok and click close
 
Now you may connet A->B without any error.


A探路者..
$
JoSwa

By
A Pathfinder..
JoSwa


这篇关于WMI访问位于不同域中的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆