Clean RDP Sessions Rumi, June 18, 2022 Just found it useful with the garbage of RDP session to clean- Paste the below lines on a notepad and rename it- rdp_clean.bat. Execute the batch file through cmd line as admin user. @echo off reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" cd %userprofile%\documents\ attrib Default.rdp -s -h del Default.rdp Voila! Scripts RDPWindows