清除windows 远程桌面访问记录 批处理
程序员文章站
2022-10-30 07:53:38
直接上码供参考 关键点说明: 1.清理windows访问记录,包含在任务栏上右键出现最近访问的程序的记录%UserProfile%\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations%UserProfile%\AppData\ ......
直接上码供参考
1 @echo off 2 color 0a 3 title clear windows recent 4 mode con cols=109 lines=30 5 :start 6 echo. 7 echo ========================================================================== 8 echo. 9 echo clear windows recent 10 echo. 11 echo ========================================================================== 12 echo. 13 echo. 14 echo. 15 :tunnel 16 echo. 17 echo. 18 echo. 19 echo. %userprofile%\appdata\roaming\microsoft\windows\recent\automaticdestinations 20 echo. %userprofile%\appdata\roaming\microsoft\windows\recent\customdestinations 21 del /f /s /q %userprofile%\appdata\roaming\microsoft\windows\recent\automaticdestinations\*.* 22 del /f /s /q %userprofile%\appdata\roaming\microsoft\windows\recent\customdestinations\*.* 23 del /f /s /q /ah %userprofile%\documents\default.rdp 24 reg delete "hkey_current_user\software\microsoft\terminal server client\default" /va /f 25 26 pause 27 goto tunnel
关键点说明:
1.清理windows访问记录,包含在任务栏上右键出现最近访问的程序的记录
%userprofile%\appdata\roaming\microsoft\windows\recent\automaticdestinations
%userprofile%\appdata\roaming\microsoft\windows\recent\customdestinations
2.删除远程桌面的记录文件
%userprofile%\documents\default.rdp
3.清除注册表中远程桌面地址下拉列表内容
"hkey_current_user\software\microsoft\terminal server client\default" /va /f
上一篇: 赵飞燕赵合德真的谋杀了汉成帝的子嗣吗?