Hello,
My goal is to launch an RDP session without being prompted for credentials. Below is a function that works fine if executed form a Powershell windows, but when I try to call it from within a GUI, I get prompted for credentials. Any ideas?
function Get-MSTSC
{
[CmdletBinding()]
param ()
$deploy = {
Param ($VMPublicIP,
$AzureUsername,
$AzurePasswordUnsecure)
cmdkey /delete:$VMPublicIP
cmdkey /generic:TERMSRV/$VMPublicIP /user:$AzureUsername /pass:$AzurePasswordUnsecure
mstsc /v:$VMPublicIP
}
Start-Job -name $VM-$VMPublicIP -ScriptBlock $deploy -ArgumentList $VMPublicIP, $AzureUsername, $AzurePasswordUnsecure
}
RPD session without credential prompt in GUI
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: RPD session without credential prompt in GUI
mstsc /?
This will show you how to specify connection. Credentials will have to be saved in vault. You can also specify a saved RDP connection file.
This will show you how to specify connection. Credentials will have to be saved in vault. You can also specify a saved RDP connection file.
Re: RPD session without credential prompt in GUI
It's my understanding that the ability to enter in the username and password directly into MSTSC has been removed. That is why people are looking for workarounds. Any ideas how I could modify my code to work inside of the GUI the way it works outside the GUI?
Thank you,
Brian
Thank you,
Brian
Re: RPD session without credential prompt in GUI
I don't see a way to download/view the mstsc omega.rdp file and how would I auto-generate that file?
Also, any idea why my previous function works fine unless executed form the GUI? Perhaps something is happening in a different session?
Thank you,
Brian
Also, any idea why my previous function works fine unless executed form the GUI? Perhaps something is happening in a different session?
Thank you,
Brian
Re: RPD session without credential prompt in GUI
This has been resolved. The issue was that I needed a GPO to allow delegating saved credentials with NTML-only server authentication.
Thanks,
Brian
Thanks,
Brian
Re: RPD session without credential prompt in GUI
Omega.rdp is a file for my connection. MSTSC can create one very easily. Type mstsc and create a connection then save it to a file.
Setting NTLM delegation on a server can be a security risk.
Setting NTLM delegation on a server can be a security risk.