共享文件夹自动打开

cmdkey /add:192.168.200.88 /user: /pass:
explorer \\\\192.168.200.88\\share

添加删除打印机

cmdkey /add:172.16.10.40 /user:administrator /pass:123456  //远程连接计算机。必须设置密码
cmdkey /add:192.168.101.254  /user:administrator /pass:123456
rundll32 printui.dll,PrintUIEntry /in /u /z /q /n \"\\\\172.16.10.40\\HP LaserJet Pro MFP M125-M126 PCLmS\"
rundll32 printui.dll,PrintUIEntry /in /u /z /q /n \"\\\\192.168.101.254\\HP LaserJet Pro MFP M125-M126 PCLmS\"  //添加打印机
rundll32 printui.dll,PrintUIEntry /y /n \"HP LaserJet Pro MFP M125-M126 PCLmS\" /q  //设置打印机为默认


rundll32 printui.dll,PrintUIEntry /dn /u /z /q /n \"\\\\172.16.10.40\\HP LaserJet Pro MFP M125-M126 PCLmS\"   //删除打印机

win7 IP169修复

netsh winsock reset catlalog

netsh int ip reset reset.log

ipconfig/release

ipconfig/renew

pause

禁止电脑休眠

powercfg -h off

 

开启局域网共享

@ECHO OFF
sc config   MpsSvc start= AUTO  
net start   MpsSvc

net user Guest /active:yes

reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Lsa\" /v \"LimitBlankPasswordUse\" /t REG_DWORD /d \"00000000\" /f

reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v \"LimitBlankPasswordUse\" /t REG_DWORD /d \"00000000\" /f

 

去除快捷方式小箭头

reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Icons\" /v 29 /d \"%systemroot%\\system32\\imageres.dll,197\" /t reg_sz /f

  taskkill /f /im explorer.exe

  attrib -s -r -h \"%userprofile%\\AppData\\Local\\iconcache.db\"

    del \"%userprofile%\\AppData\\Local\\iconcache.db\" /f /q

  start explorer

一键清理垃圾(已设置本人2345网址)

echo 正在清理系统垃圾文件,请稍候......
del /f /s /q %systemdrive%\\*.tmp
RD %windir%\\$hf_mig$ /Q /S
del %windir%\\2950800.txt /f /q
for /f %%i in (%windir%\\2950800.txt) do rd %windir%\\%%i /s /q
dir %windir%\\$NtUninstall* /a:d /b >%windir%\\2950800.txt
del /f /s /q %systemdrive%\\*._mp
del /f /s /q %systemdrive%\\*.log
del /f /s /q %systemdrive%\\*.gid
del /f /s /q %systemdrive%\\*.pnf
del /f /s /q %systemdrive%\\infcache.1
del /f /s /q %systemdrive%\\*.chk
del /f /s /q %systemdrive%\\*.old
del /f /s /q %systemdrive%\\recycled\\*.*
del /f /s /q %windir%\\*.bak
del /f /s /q %windir%\\prefetch\\*.*
rd /s /q %windir%\\temp & md %windir%\\temp
del /f /q %userprofile%\\cookies\\*.*
del /f /q %userprofile%\\recent\\*.*
del /f /s /q \"%userprofile%\\Local Settings\\Temporary Internet Files\\*.*\"
del /f /s /q \"%userprofile%\\Local Settings\\Temp\\*.*\"
del /f /s /q \"%userprofile%\\recent\\*.*\"
rd /s /q \"c:\\vod_cache_data\" 2>NUL
rd /s /q \"d:\\vod_cache_data\" 2>NUL
rd /s /q \"e:\\vod_cache_data\" 2>NUL
rd /s /q \"f:\\vod_cache_data\" 2>NUL
rd /s /q \"G:\\vod_cache_data\" 2>NUL
rd /s /q \"h:\\vod_cache_data\" 2>NUL
rd /s /q \"I:\\vod_cache_data\" 2>NUL
rd /s /q \"j:\\vod_cache_data\" 2>NUL
rd /s /q \"k:\\vod_cache_data\" 2>NUL
rd /s /q \"l:\\vod_cache_data\" 2>NUL
rd /s /q \"m:\\vod_cache_data\" 2>NUL
rd /s /q \"n:\\vod_cache_data\" 2>NUL
rd /s /q \"o:\\vod_cache_data\" 2>NUL
rd /s /q \"p:\\vod_cache_data\" 2>NUL
rd /s /q \"q:\\vod_cache_data\" 2>NUL
rd /s /q \"r:\\vod_cache_data\" 2>NUL
rd /s /q \"s:\\vod_cache_data\" 2>NUL
rd /s /q \"t:\\vod_cache_data\" 2>NUL
rd /s /q \"u:\\vod_cache_data\" 2>NUL
rd /s /q \"v:\\vod_cache_data\" 2>NUL
rd /s /q \"w:\\vod_cache_data\" 2>NUL
rd /s /q \"x:\\vod_cache_data\" 2>NUL
rd /s /q \"y:\\vod_cache_data\" 2>NUL
rd /s /q \"z:\\vod_cache_data\" 2>NUL
rd /s /q \"c:\\gvod_cache_data\" 2>NUL
rd /s /q \"d:\\gvod_cache_data\" 2>NUL
rd /s /q \"e:\\gvod_cache_data\" 2>NUL
rd /s /q \"f:\\gvod_cache_data\" 2>NUL
rd /s /q \"G:\\gvod_cache_data\" 2>NUL
rd /s /q \"h:\\gvod_cache_data\" 2>NUL
rd /s /q \"I:\\gvod_cache_data\" 2>NUL
rd /s /q \"j:\\gvod_cache_data\" 2>NUL
rd /s /q \"k:\\gvod_cache_data\" 2>NUL
rd /s /q \"l:\\gvod_cache_data\" 2>NUL
rd /s /q \"m:\\gvod_cache_data\" 2>NUL
rd /s /q \"n:\\gvod_cache_data\" 2>NUL
rd /s /q \"o:\\gvod_cache_data\" 2>NUL
rd /s /q \"p:\\gvod_cache_data\" 2>NUL
rd /s /q \"q:\\gvod_cache_data\" 2>NUL
rd /s /q \"r:\\gvod_cache_data\" 2>NUL
rd /s /q \"s:\\gvod_cache_data\" 2>NUL
rd /s /q \"t:\\gvod_cache_data\" 2>NUL
rd /s /q \"u:\\gvod_cache_data\" 2>NUL
rd /s /q \"v:\\gvod_cache_data\" 2>NUL
rd /s /q \"w:\\gvod_cache_data\" 2>NUL
rd /s /q \"x:\\gvod_cache_data\" 2>NUL
rd /s /q \"y:\\gvod_cache_data\" 2>NUL
rd /s /q \"z:\\gvod_cache_data\" 2>NUL
rd /s /q \"c:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"d:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"e:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"f:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"G:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"h:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"I:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"j:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"k:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"l:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"m:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"n:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"o:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"p:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"q:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"r:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"s:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"t:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"u:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"v:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"w:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"x:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"y:\\$recycle.bin\\vod_cache_data\" 2>NUL
rd /s /q \"z:\\$recycle.bin\\vod_cache_data\" 2>NUL
reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Start Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f 
reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Default_Page_URL\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"First Home Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer\\Main\" /v \"Start Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer\\Main\" /v \"Default_Page_URL\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer\\Main\" /v \"First Home Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_USERS\\.DEFAULT\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Start Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_USERS\\.DEFAULT\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Default_Page_URL\" /t reg_sz /d https://www.2345.com/?k1373577937 /f
reg add \"HKEY_USERS\\.DEFAULT\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"First Home Page\" /t reg_sz /d https://www.2345.com/?k1373577937 /f

 

一键锁屏

start %windir%\\\\system32\\\\rundll32.exe user32.dll LockWorkStation

 

收藏 打印