使用指定的用户名和密码运行mstsc
<p><a href="https://kb.kutu66.com/c-Sharp/post_991780">https://kb.kutu66.com/c-Sharp/post_991780</a></p>
<h3>使用指定的用户名和密码运行 mstsc.exe</h3>
<p>如果你想使用 credentialsusing,你可以添加</p>
<pre><code>cmdkey /generic:TERMSRV/172.16.2.1xx /user:username /pass:password</code></pre>
<p>然后调用RDP连接,使用</p>
<pre><code>mstsc/v:172.16.2.1xx</code></pre>
<p>如果你想删除凭据运行</p>
<pre><code>cmdkey /delete:TERMSRV/172.16.2.1xx</code></pre>