Starting Firefox with Process.Start: Firefox does not start when setting a username and password

When I try to start Firefox using Process.Start and ProcessStartInfo (.NET), everything works fine. But when I provide the username and password of another account (user member), nothing happens. The same code works fine with Calc.exe or IE. This is strange. Any ideas?

Here is the code:

System.Diagnostics.ProcessStartInfo pInfo = new System.Diagnostics.ProcessStartInfo();
pInfo.CreateNoWindow = false;
pInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
pInfo.WorkingDirectory = "{WorkingDirectory}";
pInfo.Arguments = "{CommandLineArgs}";
pInfo.FileName = "{ExecutableAddress}";
pInfo.ErrorDialog = true;
pInfo.UseShellExecute = false;
pInfo.UserName = "{LimitedAccountUserName}";
pInfo.Password = "{SecureLimitedAccountPassword}";
System.Diagnostics.Process.Start(pInfo);

Thanks to everyone.

+3
source share
1 answer

To load an application with other credentials if this application uses a user profile, the LoadUserProfile property of ProcessStartInfo must be set to true.

+2

All Articles