Created
October 9, 2017 12:28
-
-
Save ur0n2/5d6927ea6b3a840d70c1b9506098da54 to your computer and use it in GitHub Desktop.
mstsc log remove batch script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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