PowerCLI

 View Only
  • 1.  Checking RDP connectivity with credentials using Powershell

    Posted Apr 27, 2022 05:48 AM

    Hi Team,

    I am Facing an issue while checking the RDP(Remote Desktop) connectivity with credentials.I have used the below script for making a rdp check connectivity.
    Script : cmdkey /generic:"server01" /user:"test" /pass:"PW"
    mstsc /v:server01 /f
    But it is throwing an error like RDP cannot process the request with saved credentials and please do enter again.

    Is there any other way to check the RDP connectivity with saved credentials using powershell?





  • 2.  RE: Checking RDP connectivity with credentials using Powershell

    Posted Apr 27, 2022 09:17 AM

    Is this a PowerCLI/PowerShell question?
    What error do you get?



  • 3.  RE: Checking RDP connectivity with credentials using Powershell

    Posted Apr 28, 2022 12:53 PM

    It is Powercli.

    Error : The server's authentication policy doesnot allow connection requests using saved credentials . Please enter new crdentials.



  • 4.  RE: Checking RDP connectivity with credentials using Powershell

    Posted Apr 28, 2022 01:05 PM

    I'm not sure where PowerCLI comes into play.
    You are using a DOS command (cmdkey) to store credentials, and the mstsc command tells you it doesn't accept stored credentials.
    Not sure what you expect here?



  • 5.  RE: Checking RDP connectivity with credentials using Powershell

    Posted Apr 29, 2022 06:42 AM

    Hi  

    I am using this process to know whether RDP connection is working with authentication using powercli.

    If this is not the correct process that i am doing. Could you please suggest me any other way to achieve this.

    Thanks in advance.



  • 6.  RE: Checking RDP connectivity with credentials using Powershell

    Posted Apr 29, 2022 06:46 AM

    The fact that RDP does not accept stored credentials, is due to a setting that the AD administrator selected.
    If you want to avoid that fact, you will have to talk to your AD admin.