I have a script. It's not working. Without UserName and password everything is good. And must the logMessage show me "1" or not because of Secure type? LogMessage shows me just a "System.Security.SecureString" now.
pass = new System.Security.SecureString;
pass.AppendChar("1");
LogMessage(pass);
proc = new System.Diagnostics.Process;
proc.StartInfo.Username = "temp";
proc.StartInfo.Password = pass;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = "notepad.exe";
proc.Start();