user creating/saving

Posted by Xaver on Stack Overflow See other posts from Stack Overflow or by Xaver
Published on 2010-04-13T03:57:28Z Indexed on 2010/04/13 4:02 UTC
Read the original article Hit count: 405

Filed under:
|
|
|

i want to write 2 program:
1) programm saves all local users to the file.
2) loads file find that users not found on local machine and create user. for searching all users which create on local machine i use next code:

foreach (ManagementObject user in userSearcher.Get())
{
    if ((bool)user["LocalAccount"])
    {
        string UserName = (string)user["FullName"];
    }
}

How can i save the settings of user by name and create user?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET