I am running a winforms application with elevated user rights (emulated Run As as a different domain administrator account), however I want to start a sub process of opening a webbrowser to a URL with the currently logged on user rights as opposed to elevated rights without having to prompt them for their password and logon information so it properly handshakes NTLM with the currently logged on user permissions.
I have tried something like:
// I have the USER NAME, this is not the issue
// I have the Domain, this is not the issue
// I need to grab the Password from the currently logged on user
// without prompting for it
System.Security.SecureString oPass = new System.Security.SecureString();
System.Diagnostics.Process.Start("IExplore.exe"
, this.oConfiguration.WrappersURL
, this.WindowsUserID
, oPass
, this.DomainName
);
..but I am not quite sure how to grab the user's password. Any ideas of how to reduce rights of the spawned process to the logged on user that is W7 and XP compatible?