Skip to content

Instantly share code, notes, and snippets.

@ur0n2
Created October 9, 2017 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ur0n2/5d6927ea6b3a840d70c1b9506098da54 to your computer and use it in GitHub Desktop.
Save ur0n2/5d6927ea6b3a840d70c1b9506098da54 to your computer and use it in GitHub Desktop.
mstsc log remove batch script
@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