VMarena
- Homepage
- 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\administratorNote :- You can see from screen as connection established and session is with the Server Name [VMARENA-BKP-01] : PS
Enable Remote Desktop
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 1Now try to do a Remote Desktop session , it will work .
- 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
Related Post
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
- AWS
- Veeam Backup
Get Your Cloud Coalition SWAG
How toget Veeam swag? It is very easy , you have to just follow this
- 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
- ALTARO
This Holiday Season, win with Hornetsecurity!
Tis the season to be caring for your loved ones, for each other, and
- 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
- vExpert
vExpert 2022 Applications are Open
vExpert 2022 Applications are Open! Dont miss out on this opportunity, be sure toapply before
Headline
- t
- L