I'm currently trying to get a list of system users.
In the msdn I found the follwing code:
DirectoryEntry AD = new DirectoryEntry("WinNT://" +
Environment.MachineName + ",computer");
DirectoryEntry NewUser = AD.Children.Add("TestUser1", "user");
NewUser.Invoke("SetPassword", new object[] {"#12345Abc"});
NewUser.Invoke("Put", new object[] {"Description", "Test User from .NET"});
NewUser.CommitChanges();
Just works fine. But how can I list the system users?
Anywhere docs about this topic available?
thx for your help
--------------------------------
From: Thomas Steininger
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>W+7I6+d72UObQr2dUSh4vQ==</Id>