Question

How should i remove admin rights for each desktop user on Win XP, Win Vista and Win 7 programmatically using C# .NET ?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top