Removal of admin rights from each desktop using C# .NET
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.
精彩评论