Understanding and Troubleshooting Remote Desktop Connection
International Telecommunication Union (ITU)
2
RDP is a multichannel capable protocol allowing virtual channels for:
Presentation data
Serial device communication
Licensing information
Highly encrypted data like keyboard, mouse activity
Remote Desktop is an extension of the T.120 protocol standards which is a part of the many technology standards of the ITU
The T.120 series of protocols
3
RDC is a client-server application
4
Components
Windows 11 RDC
5
Windows 11 RDC
6
7
IP address or Computer Name
Windows 11 RDC components: Remote Desktop Service
8
Windows 11 RDC components: Remote Desktop Service
9
*.rdp files allow mstsc.exe features to be enabled/disabled
Mstsc.exe will use the default.rdp, a hidden file in Documents
10
Client side
11
12
Termsrv
Services and their dependencies
13
14
RDC client Certificate: Local computer
15
Inbound rules in remote host’s firewall
16
Firewall settings
17
18
RDC handshake between client and server
Remote Assistance
19
Remote Assistance Protocol
20
21
Remote Assistance: allows session sharing
22
RasAuto (Remote Access Auto Connection Manager): Manages connections and ensures that the remote helper can connect to the shared session.
Msra.exe (Microsoft Remote Assistance): The main executable that facilitates the Remote Assistance session.
RasMan (Remote Access Connection Manager): Manages the connection, allowing it to operate over various network types.
Sessions-Windows Stations-Desktops
23
Understanding Sessions
24
Three desktops for each session
25
Winobj.exe
26
Session ID for user
27
Process assigned to session ID
28
Finding Windows Station
29
Great resources for RDC troubleshooting
30
RATs
31
https://www.darkreading.com/perimeter/the-7-most-common-rats-in-use-today
Need troubleshooting Resources now!
Links to the next two slides in our video notes
32
Windows 11 RDC server components
34
Windows 11 RDC server components
35
Windows 11 RDC server components
36
rdpshell.exe (Remote Desktop Shell)
Remote Desktop Services (TermService)
rdpinit.exe (RDP Initialization Process)
Windows Server 2016-2025
RDC server components
37
Windows Server 2016-2025: RDC server-side
38
Windows clients: RDC not enabled
39
PowerShell script that will enable a client on a domain (you need to be a domain admin)
Will prompt you for variables ex: computer name (IP address)
Will display each major steps the script is taking and show success or failure.
See link in video description (the extension will be *.txt you will have to change to *.ps1)
Troubleshooting RDC
40
41
For any missing or corrupted files!
42
Using SFC and DISM to Repair System Files
Step 1: Run the System File Checker (SFC)
For any missing or corrupted files!
43
Failing to connect to remote host
44
One test confirms two functions
45
Long time out…
46
Troubleshooting a remote host
47
Just because RDC will not work
Create a remote PowerShell session and troubleshoot
Enter-Pssession –computername <remotehost>
If this fails, verify DNS and IP address for host
Scripts
You are on a domain and you are a domain admin
48
Is RDP enabled on the remote host?
Invoke-Command -ComputerName RemoteComputerName -ScriptBlock {
Get-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\' -Name fDenyTSConnections
}
49
50
Verify the Windows Firewall Configuration for RDP
Invoke-Command -ComputerName RemoteComputerName -ScriptBlock {
Get-NetFirewallRule -DisplayName "Remote Desktop - User Mode (TCP-In)"
}
51
52
Check the Listening State of RDP Port
Invoke-Command -ComputerName RemoteComputerName -ScriptBlock { Test-NetConnection -ComputerName localhost -Port 3389}
53
54
Inbound Firewall rules
55
TermService
56
57
Critical components
58
Group Policy Settings
59
mstsc.exe
60
Certificates and Encryption
61
Please consider becoming a channel member
62
CONTACT US�mrvanderpool@techsavvyproductions.com��
SOCIAL MEDIA
63
We have subtitles for in many languages:
We translate subtitles on our videos into the many languages: عربى, българскиB, 简体中文), 中國傳統的), Nederlands, Suomalainen, Pilipino, français, Deutsche, हिंदी , Magyar, bahasa Indonesia, 日本語, 한국어, norsk, Polskie, português, Română, русский, Española, Kiswahili, Svenska, and Tiếng Việt
64
�A BIG THANK YOU TO ALL OF OUR MEMBERS, VIEWERS AND SUBSCRIBERS!�
65