How to create windows user using some command line tool or windows API or .NET without hard-coding the password, I need a way to create a user with some password without actually knowing this password, (The program knows only its hash for example).
For example:
Any method to create a windows user with a spicific password will be like this:
UsersUtil.CreateUser("username", "SpIcif1c_Passw0rd");
I need an the code to be like this:
UsersUtil.CreateUser("username", "7604905d86ed36b69a657366e5b5c35f");
//"7604905d86ed36b69a657366e5b5c35f" is the hash for SpIcif1c_Passw0rd for example
I need the code of this CreateUser
method or something similar!!