title: Remote Desktop connection without username and password
body: <p>I want to connect to a remote machine using mstsc.exe without username and password. As I want to connect it without username and password then it should get connect with lock session status.</p>
  
  <p>So I want something like this, </p>
  
  <ol>
  <li>User will enter IP address and hit connect button.</li>
  <li>Machine should get connected with lock status.</li>
  </ol>
  
  <p>I already tried below code but it did not work.</p>
  
  <pre><code>        Process rdcProcess = new Process();
          rdcProcess.StartInfo.FileName = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\system32\mstsc.exe");
          rdcProcess.StartInfo.Arguments = "/v " + "123.0.0.1 /public"; // ip or name of computer to connect
          rdcProcess.Start();
  </code></pre>
  
  <p>Is there any way user will be able to do this using C#?</p>
  
  <p>Thanks</p>
  
  <p>-Sanket</p>