VMware Cloud Community
Developer_PK
Enthusiast
Enthusiast

Checking RDP connectivity with credentials using Powershell

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?



Tags (1)
0 Kudos
5 Replies
LucD
Leadership
Leadership

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Developer_PK
Enthusiast
Enthusiast

It is Powercli.

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

0 Kudos
LucD
Leadership
Leadership

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?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Developer_PK
Enthusiast
Enthusiast

Hi @LucD 

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.

0 Kudos
LucD
Leadership
Leadership

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.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos