Allow RDP using Powershell

7 בSeptember 2017

tags:
no comments

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

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*