Skip to main content

Overview

After gaining admin access, enabling RDP provides a stable GUI session — useful for manual enumeration, credential harvesting through GUI apps, and persistent re-entry without relying on reverse shells.

Enable via Registry

Disable Network Level Authentication (allows connection without NLA):

Enable via PowerShell

One-liner:

Firewall Rules

Allow RDP through Windows Firewall (cmd):
Or add rule manually:

Add User to Remote Desktop Users

Create new user and add to RDP group:

Change RDP Port

Useful to avoid detection on default port 3389:
Update firewall for new port:
Restart RDP service:

Connect

From Linux:
With custom port:
From Windows:

Enable via Metasploit


Restricted Admin Mode

Allows Pass-the-Hash over RDP (no plaintext password needed): Enable on target:
Connect with hash:

Quick Reference