Skip to content

Instantly share code, notes, and snippets.

@Shterneregen
Last active March 26, 2020 20:47
Show Gist options
  • Save Shterneregen/68bba31610c227a4e97c420905004042 to your computer and use it in GitHub Desktop.
Save Shterneregen/68bba31610c227a4e97c420905004042 to your computer and use it in GitHub Desktop.
Clear rdp history in Windows
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment