Allow RDP using Powershell

7 בSeptember 2017

תגיות:
אין תגובות

Hey there,

During the week I had to remote control the Windows Server machine, for some reason I didn’t have the right to access the machine via the console through VMware and RDP option was disabled, it was so frustrating! because I had to perform an important task rapidly.

Eventually, I found a way to enable RDP using Powershell command and access to the machine:

Enable RDP Remotely:

First, run this:

Enter-PSSession -ComputerName "MachineName / IP"

Then, run these:

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 1
Set-NetFirewallRule -DisplayGroup 'Remote Desktop' -Enabled True

Hope, it is useful for you

הוסף תגובה
facebook linkedin twitter email

Leave a Reply

Your email address will not be published. Required fields are marked *