标签: remote-management

如何在C#中访问WinRM

我想创建一个可以使用WinRM而不是WMI收集系统信息(Win32_blablabla)的小应用程序.我怎么能用C#做到这一点?

主要目标是使用WS-Man(WinRm)而不是DCOM(WMI).

c# windows wmi remote-management

17
推荐指数
2
解决办法
9319
查看次数

使用winrm连接到远程服务器,而无需将服务器添加到TrustedHosts

我一直在努力应对winrm和TrustedHosts,但无济于事.经过一些实验,我发现winrm/config/client的这个字段限制为多达1023个符号,这是不够的,特别是如果他们的ipv6添加主机.我引用Windows远程管理的安装和配置:A trusted hosts list should be set up when mutual authentication cannot be established.

文本也在同一个文件中说:Other computers in a workgroup or computers in a different domain should be added to this list.所以我认为这意味着只要两台计算机在同一个域中,我就可以使用winrm从另一台计算机访问其中一台.

我试图将两台计算机添加到测试域并执行:

winrm get winrm/config/client -r:192.168.100.1 -u:user -p:pass

从其中一个到另一个,但由于错误而失败:

WSManFault
    Message = The WinRM client cannot process the request. If the authentication
 scheme is different from Kerberos, or if the client computer is not joined to a
 domain, then HTTPS transport must be used or …
Run Code Online (Sandbox Code Playgroud)

windows windows-server-2008 windows-7 remote-management winrm

5
推荐指数
1
解决办法
1万
查看次数

检查电脑是否开机

我写了一个简单的 php 页面,它也向我的几台运行 Windows 7 的计算机发送唤醒网络数据包。

如何检查计算机是否已开机(假设该位置的互联网工作正常)?

我可以在加载页面时如何 ping 计算机以检查响应吗?

附加信息:这些计算机都位于不同的位置,在那里它们为 IP 设置了动态 dns,并且都在与其他计算机一起位于路由器后面。

php windows remote-access remote-management

2
推荐指数
1
解决办法
5598
查看次数