5月 18, 2021 Network

Remote Desktop

When using remote desktop, its saved your connection ip / domain name to window registry for your quick access. But sometime you may not want window keep your connection history (e.g. public computers).

How to clear connection history

Because remote desktop use window registry to save your connection history data. So you may remove the appropriate registry key to archive this.

The following shell command has made for this:

@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"
attrib -s -h %userprofile%\documents\Default.rdp
del %userprofile%\documents\Default.rdp
del /f /s /q /a %AppData%\Microsoft\Windows\Recent\AutomaticDestinations
過去文章
2025 年 (9)
04 月 (5)
03 月 (1)
02 月 (3)
2024 年 (25)
11 月 (3)
10 月 (3)
09 月 (1)
03 月 (18)
2022 年 (6)
10 月 (1)
06 月 (2)
05 月 (1)
03 月 (1)
01 月 (1)
2021 年 (21)
11 月 (7)
07 月 (1)
06 月 (2)
05 月 (2)
04 月 (6)
03 月 (2)
02 月 (1)
2020 年 (92)
12 月 (1)
11 月 (2)
10 月 (4)
09 月 (10)
08 月 (5)
07 月 (1)
06 月 (3)
05 月 (1)
04 月 (4)
03 月 (25)
02 月 (7)
01 月 (29)
2019 年 (57)
12 月 (25)
11 月 (7)
09 月 (25)