"ad" <fl****@wfes.tcc.edu.twwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
| Hi,
| How can I add an user account into Administrators?
| and how to remove the account from Administrators?
|
|
Take a look at the System.DirectoryServices namespace, these classes are
build to provide this functionality, no need to take the PInvoke tour.
Start here
http://msdn.microsoft.com/library/de...ectoryadsi.asp
and search MSDN for more samples.
Willy.