reset user password
<p>I have a server which has machines...</p>

<p>I have an administrator and multiple users... these are all windows users and not present in the databse.</p>

<p>How do i reset the user password.... i log in using the administrator and provide the username that needs to be reset..</p>

<p>I tried </p>

<pre><code> string newPassword;

 u = Membership.GetUser(UsernameTextBox.Text, false);
</code></pre>

<p>but this does not work...</p>

<p>any suggestions... thanks</p>

<p>Code to add users:</p>

<pre><code> DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");
            DirectoryEntry NewUser = AD.Children.Add(username, "user");
            NewUser.Invoke("SetPassword", new object[] { password });
            NewUser.Invoke("Put", new object[] { "Description", description });
            NewUser.CommitChanges();
</code></pre>
