• mstsc痕迹清理


    rem clear all
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault" /va /f
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientLocalDevices" /va /f
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientServers" /f
    (ver | find "5.1") && (del /a /f /q "%USERPROFILE%My DocumentsDefault.rdp") || (del /a /f /q "%USERPROFILE%DocumentsDefault.rdp")
    
    rem backup
    mkdir cache
    attrib +h +s cache
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault" cacheDefault.reg
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientLocalDevices" cacheLocalDevices.reg
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientServers" cacheServers.reg
    (ver | find "5.1") && (xcopy /c /q /y /h "%USERPROFILE%My DocumentsDefault.rdp" cacheDefault.rdp) || (xcopy /c /q /y /h "%USERPROFILE%DocumentsDefault.rdp" cacheDefault.rdp)
    
    rem restore
    reg import cacheDefault.reg
    reg import cacheLocalDevices.reg
    reg import cacheServers.reg
    (ver | find "5.1") && (xcopy /c /q /y /h cacheDefault.rdp "%USERPROFILE%My DocumentsDefault.rdp") || (xcopy /c /q /y /h cacheDefault.rdp "%USERPROFILE%DocumentsDefault.rdp")
    rmdir /s /q cache
    
  • 相关阅读:
    我们工作到底为了什么
    阿里云是如何做好高并发的
    织梦cms PHPcms 帝国cms比较
    正确修改MySQL最大连接数的三种好用方案
    微信开发的几个小功能
    命令行下运行php的方法和技巧
    PHP去除连续空格
    ajax,django
    web框架,HTTP协议
    Django 模型Model层2
  • 原文地址:https://www.cnblogs.com/Yang34/p/14183524.html
Copyright © 2020-2023  润新知