How to Disable Remote Desktop on Windows
Stop allowing remote connections to this PC to reduce the attack surface.
Step-by-step
- Press Win+R, type sysdm.cpl and press Enter (System Properties)
- Switch to the Remote tab and select "Don't allow remote connections to this computer"
- Click Apply then OK
- If the Remote Desktop Services service is running, stop it from services.msc and remove any unneeded users from the Remote Desktop Users group
Reference: learn.microsoft.com