With below code, I am able to create a user with password, but how to enable "password never expires" flag?
using (var process = new Process())
{
process.StartInfo.CreateNoWindow = true;
process.StartInfo.RedirectStandardOutput = false;
process.StartInfo.UseShellExecute = true;
process.StartInfo.Arguments = $"user test-user Password1 /add";
process.StartInfo.FileName = "net";
process.Start();
process.WaitForExit();
}