清除“远程桌面连接”的历史记录

时间:2022-11-06 23:18:50
 1 @echo off
2 echo ----------------------------------------------------------------------------------
3 echo ------------------------- 清除“远程桌面连接”的历史记录-----------------------------
4 echo ----------------------------------------------------------------------------------
5
6 del "%USERPROFILE%\Documents\Default.rdp"
7
8 ::删除注册表
9 reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
10
11 echo.
12 pause