Determining members of local groups via C#

后端 未结 6 1615
执念已碎
执念已碎 2020-12-15 15:13

I wondered whether anybody knows how to obtain membership of local groups on a remote server programmatically via C#. Would this require administrator permissions? And if so

6条回答
  •  一向
    一向 (楼主)
    2020-12-15 15:51

    I asked a similar question, and ended up writing an answer which used WMI to enum the group members. I had real problems with authentication in the system.directoryservices.accountmanagement stuff. YMMV, of course.

提交回复
热议问题