Lusrmgr.exe
// Create user DirectoryEntry newUser = localMachine.Children.Add("JohnDoe", "User"); newUser.Properties["FullName"].Value = "John Doe"; newUser.Invoke("SetPassword", new object[] "P@ssw0rd" ); newUser.CommitChanges();
Write-Host "Run as Administrator required" -ForegroundColor Red exit 1 lusrmgr.exe
Remove-LocalUser -Name "JohnDoe"