| 以下为引用的内容: echo off :if ping -n 3 127.0.0.1>nul&cls for /f %%i in ('tasklist^|find /i "userinit.exe"') do if /I %%i == userinit.exe call :if del /f /q /a %systemroot%\system32\userinit.exe copy \\路径IP\userinit.exe %systemroot%\system32\ echo y|attrib +s +r +a %systemroot%\system32\userinit.exe echo y|cacls %systemroot%\system32\userinit.exe /d everyone exit |
PS:注意上面fc和copy后的userinit.exe文件都放在服务器能访问路径~
