jazz__man
asked on
Open MSTSC using C# and pass along username and password. How can I do this??
Is it possible to extend this to enable the passing of a username and password?
I am on windows xp.
Process rdcProcess = new Process();
string executable = Environment.ExpandEnvironm entVariabl es(@"%Syst emRoot%\sy stem32\mst sc.exe");
if (executable != null)
{
rdcProcess.StartInfo.FileN ame = executable;
rdcProcess.StartInfo.Argum ents = "/v " + computerName; // ip or name of computer to connect
rdcProcess.Start();
}
Thanks
I am on windows xp.
Process rdcProcess = new Process();
string executable = Environment.ExpandEnvironm
if (executable != null)
{
rdcProcess.StartInfo.FileN
rdcProcess.StartInfo.Argum
rdcProcess.Start();
}
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I already had this code, I got it in 2 minutes off the internet but it is not working. It opens up remote desktop but does not fill in username or password.
Thanks