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?
I've tried several classes but the one that seems that should do the work (Win32_NetworkClient) does not show what i expected to...
Is this possible using WMI, or only using LDAP with a domain?
Thanks
Use Win32_ComputerSystem to enumerate possibles, filter using
PartOfDomain
andWorkgroup
fields.You may need to set up a user account on each workgroup computer that has the required privileges. For complete info see here.