venerable bede
Sep 22nd, 2004, 08:58 AM
How can I go about adding/Deleting and in general mess around with windows user accounts from an asp.net application running on our internet ?
This must be possible surly.
tcorey08
Sep 22nd, 2004, 10:34 PM
First of all, I must point out that providing access to your network user accounts administration in this fashion is a serious security risk and should not be taken lightly.
Now, depending on the type of environment you're using will depend on how you would need to access your user accounts.
If you're running a domain-based network with either Windows 2000 or Windows Server 2003 as your servers with Active Directory enabled, you would use the System.DirectoryServices, System.Management and System.Management.Instrumentation namespaces respectively.
If you are in a workgroup environment, you would only need to use the System.Management and System.Management.Instrumentation namespaces. For more information about these namespaces, consult your local documentation, and also look up information about ADSI and WMI on MSDN.
T