Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 PC 上的“本地用户和组”下有几个安全组。有没有办法列出特定组下的用户?
我不确定要使用哪个类。
我在课堂上找到了它:DirectoryEntry
这是代码的快速版本
deComputer = New DirectoryEntry("WinNT://" + computerName + ",computer") deComputer.RefreshCache() deGroup = deComputer.Children.Find(Groupname, "group") members = deGroup.Invoke("members", Nothing)