[英]How to determine the admin users of a given machine on domain?
I need to programmatically determine the name of the users who are administrator on a given machine on a windows network. 我需要以编程方式确定Windows网络上给定计算机上的管理员用户的名称。 How can I do it?
我该怎么做?
I intend to use C# but if i need to use PInvoke to achieve this, that wouldn't be problem. 我打算使用C#,但是如果我需要使用PInvoke来实现这一点,那将不是问题。
请参阅检测用户是否在组中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.