title: Throw : Unable to cast object of type 'System.String' to type 'System.Management.Automation.PSObject'
body: <p>I want to create a connection to <strong>remote desktop</strong> connection using <strong>UIPath</strong>. The connection is done using <strong>PowerShell</strong>.</p>
  
  <p>It logs in to the remote server, but at the end, the <strong>UIPath</strong> gives me this error.</p>
  
  <p>Can someone help me solve it?</p>
  
  <p>It is linked to the input field.</p>
  
  <p>The input of the PowerShell Activity:</p>
  
  <pre><code>  cmdkey /generic:TERMSRV/192.1.... /user:admin /pass:passs....
      mstsc /v:192.1.....
  </code></pre>