By using this technique you can reset the Windows Administration Account password to what ever you want. In addition, with some changes, you can also reset other Windows Account passwords. However, the most importent point of this technique is that the method runs silently (hidden) and does not show the CMD Window. I hope this is useful to you!
Using the code
Just copy and paste the following code into your Project.
private static void ResetAdminPass(string NewPass)
Process QProc = new Process();
QProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
QProc.StartInfo.CreateNoWindow = true;
QProc.StartInfo.WorkingDirectory = "C:\\windows\\SYSTEM32";
QProc.StartInfo.FileName = "net.exe";
QProc.StartInfo.UseShellExecute = false;
QProc.StartInfo.RedirectStandardError = true;
QProc.StartInfo.RedirectStandardInput = true;
QProc.StartInfo.RedirectStandardOutput = true;
QProc.StartInfo.Arguments = @" user administrator " + NewPass;
For example you can create a Windows Forms Application (C#) and in
Form_Load() do this:
private void Form1_Load(object sender, EventArgs e)
Note that you can simply change
"administrator" to what ever you like and reset that account instead.
Points of Interest
I use this code snippet in my project to help my clients so that each time they change their password in my program, their Windows Administrator Account password changes, too!
I hope this is useful to you!