问题描述
我想枚举所有的pc在我的工作组lan(不是一个域)使用WMI。
I'm trying to enumerate all the pc's in my workgroup lan (not a domain) using WMI.
我不知道使用哪个类,如果有任何类提供此功能?
I can't figure out which class to use or if there is any class that offers this functionality?
我试过几个类,但似乎应该做的工作(Win32_NetworkClient)不显示我的期望to ...
I've tried several classes but the one that seems that should do the work (Win32_NetworkClient) does not show what i expected to...
这是否可以使用WMI,或只使用LDAP与域?
Is this possible using WMI, or only using LDAP with a domain?
/ p>
Thanks
推荐答案
使用枚举可能性,使用 PartOfDomain
和工作组
字段。
Use Win32_ComputerSystem to enumerate possibles, filter using PartOfDomain
and Workgroup
fields.
您可能需要在具有所需权限的每个工作组计算机上设置一个用户帐户。有关完整信息,请参阅。
You may need to set up a user account on each workgroup computer that has the required privileges. For complete info see here.
Windows防火墙 - 我们必须能够
远程连接到运行
的电脑Windows防火墙与WMI和VB
脚本。这将由
在
Windows中配置安全的WMI连接完成。
Windows Firewall – We must be able to remotely connect to a PC running Windows Firewall with WMI and VB Script. This will be done by configuring a secure WMI connection in Windows.
访客用户 - 在Windows XP
工作组中,来自网络的远程连接
将被
身份验证为访客用户。 A来宾
用户只有很少的权限,所以我们必须
确定如何配置Windows到
识别
远程连接使用的帐户。
Guest User – In a Windows XP workgroup, all remote connections coming from the "network" will be authenticated as a Guest User. A Guest User has very few rights so we must determine how to configure Windows to recognize the account used by the remote connection.
这篇关于使用WMI(c ++)枚举工作组上的pc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!