开发者

Removal of admin rights from each desktop using C# .NET

开发者 https://www.devze.com 2023-01-26 01:05 出处:网络
How should i remove admin rights for each desktop user on Win XP, Win Vista and Win 7 programmatical开发者_运维知识库ly using C# .NET ?You can solve this problem with a cmd prompt.

How should i remove admin rights for each desktop user on Win XP, Win Vista and Win 7 programmatical开发者_运维知识库ly using C# .NET ?


You can solve this problem with a cmd prompt.

With the NET GROUP Command, you can remove the admin-group from the user-group.

http://technet.microsoft.com/en-us/library/cc754051%28WS.10%29.aspx

http://ss64.com/nt/net_useradmin.html

best regards


You could P/Invoke NetGroupDelUser; not sure if there is a .NET equivalent.

0

精彩评论

暂无评论...
验证码 换一张
取 消