Enable Remote Desktop Windows Server 2016 PowerShell

Type your search query and hit enter:
All Rights ReservedView Non-AMP Version

VMarena

Type your search query and hit enter:
  • Homepage
  • Microsoft
Microsoft

How to Enable Remote Desktop [RDP] Remotely Using PowerShell

Imagine about a situation where you cannot access your virtual machines through VM console and there is no RDP enabled and your Critical Application is Down .Recently I faced this challenge and was not able to open windows 2012 R2 VM console from vSphere Web and Thick Client and Application Down , its happened After windows update and VMware update . I tried from server manager option enable and RDP and that option also grayed out from DC , Finally i used power shell to enable RDP .

You can remotely enable Remote Desktop [RDP] on the server using Powershell from DC or any other server which is reachable to the target server . Here we are using Windows 2012 R2 platform.

Enable RDP Remotely Using PowerShell

First of all we need to establish a session with the remote server by following below command and it will prompt for the password , and you have type the password to get access

Establish a session with Remote Session

Enter-PSSession -ComputerName server.domain.local -Credential domain\administrator

Note :- You can see from screen as connection established and session is with the Server Name [VMARENA-BKP-01] : PS

Enable Remote Desktop

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0

Activate the firewall rule

Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

Enable authentication via RDP

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1

Now try to do a Remote Desktop session , it will work .

Rajesh Radhakrishnan
Next End of General Support for vSphere 5.5 »
Previous « Immutable Storage for Azure Storage Blobs Available Now
Leave a Comment
Share
Published by
Rajesh Radhakrishnan

    Related Post

  • Free eBook How to Get the Most Out of Windows Admin Center Second Edition
  • Your 5 Most Critical M365 Vulnerabilities Revealed and How to Fix Them
  • PowerCLI: An Aspiring Automators Guide

Recent Posts

  • Veeam Backup

Veeam Backup and Replication v11a is available

Veeam has launched a new update for Veeam Backup & Replication 11a with the build

4 days ago
  • AWS
  • Veeam Backup

Get Your Cloud Coalition SWAG

How toget Veeam swag? It is very easy , you have to just follow this

5 days ago
  • NAKIVO

NAKIVO v10.5 Released with Hardened Virtual Appliance and VMware Monitoring

NAKIVO introduces a VMware vSphere monitoring tool and releases NAKIVO Backup & Replication v10.5 that

2 weeks ago
  • ALTARO

This Holiday Season, win with Hornetsecurity!

Tis the season to be caring for your loved ones, for each other, and

2 weeks ago
  • AWS

AWS Backup Support for VMware and VMware Cloud on AWS

AWS has announced AWS Backupsupport for VMware, a new capability that enables you to centralize

2 weeks ago
  • vExpert

vExpert 2022 Applications are Open

vExpert 2022 Applications are Open! Dont miss out on this opportunity, be sure toapply before

2 weeks ago
All Rights ReservedView Non-AMP Version
X

Headline

AcceptReject
Privacy Settings
  • t
  • L

Video liên quan

Chủ Đề