【问题标题】:List of users in local security group本地安全组用户列表
【发布时间】:2012-10-02 10:01:22
【问题描述】:

我在 PC 上的“本地用户和组”下有几个安全组。有没有办法列出特定组下的用户?

我不确定要使用哪个类。

【问题讨论】:

    标签: vb.net windows-xp


    【解决方案1】:

    我在类中找到了它:DirectoryEntry

    这是代码的快速版本

    deComputer = New DirectoryEntry("WinNT://" + computerName + ",computer")
    deComputer.RefreshCache()
    
    deGroup = deComputer.Children.Find(Groupname, "group")
    
    members = deGroup.Invoke("members", Nothing)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-07
      • 1970-01-01
      • 2016-02-03
      • 1970-01-01
      • 2013-09-03
      • 2012-10-04
      • 2019-10-19
      相关资源
      最近更新 更多