Hello,
Can someone please help me to share the command line that I can RDP servers using my user name and account.
Connect-Mstsc -ComputerName '<VM Name>' -User '<domain/username>' -Password '<password>'
When I tried the above command I am getting this error:
Connect-Mstsc : The term 'Connect-Mstsc' is not recognized as the name of a cmdlet, function, script file, or operable
program.
I tried this too, but no luck:
mstsc /v:<VM Name> -User '<domain/username>' -Password '<password>'
I am getting the RDP windows for those servers if I just use the below commands. But RDP window asking my password (User name is automatically taking):
Connect-Mstsc -ComputerName '<VM Name>'
Or
mstsc /v:<VM Name>
So my need is by a command line (user name and password), I need to connect the server via RDP properly.
Can someone please help ?

