net user for /f "skip=4 tokens=1-3 delims= " %%ain ('net user') do (set /a n+=1 set U#!n!=%%a set /a n+=1 set U#!n!=%%b set /a n+=1 set U#!n!=%%c) for /f "tokens=2 delims==" %%uin ('set u#') do ( if /i %%uNEQ Administrator net user %%u /delete&&echo%%u) echo ******************************* echo 删除用户成功... echo ******************************* echo 按任意键进入OOBE模式... pause>nul start%WINDIR%\system32\sysprep\sysprep.exe /oobe /shutdown rem del %~nx0 rem 删除自身