May 11, 2012

Delete remote desktop connection history 清除遠端桌面連線記錄


Every time you log in with remote desktop connection, it will keep history as long as possible.

There are 2 methods here to remove these connection history with Windows 7.

每次在使用遠端桌面時,都會保留連線記錄。
這裡列出 Windows 7 下的二個方法來刪除/移除遠端桌面連線記錄。




Method 1. manual input command
方法一. 手動輸入指令

Step 1. find cmd.exe program by input cmd in the search bar.
步驟一. 在搜尋列中輸入 cmd 來找出 cmd.exe 程式


Step 2. right click on cmd.exe and select "Run as administrator"
步驟二. 在 cmd.exe 按右鍵選擇 "以系統管理員身份執行"。


Step 3.input these command:
步驟三. 輸入以下指令

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
del /a:h "%USERPROFILE%\My Documents\default.rdp"
del /a:h "%USERPROFILE%\Documents\default.rdp"



Method 2. Using batch file 
方法二. 使用批次檔

Step 1. create a batch file named delete.bat and edit with these command:
步驟一. 建立一個 delete.bat 的檔案,並輸入以下指令

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
del /a:h "%USERPROFILE%\My Documents\default.rdp"
del /a:h "%USERPROFILE%\Documents\default.rdp"

Step 2. Right click on the file then select "Run as administrator"
步驟二. 在該檔案上按右鍵,並選擇"以系統管理員身份執行"。

1 comment: