❶ 能不能用vbs讓電腦無法關機
想辦法替換掉rundll32.exe就行了。但是這樣會無法重啟電腦,無法打開控制面板。 但現在的SFC不讓你改變系統文件,這樣就沒辦法了。
❷ 如果編寫VBS(Bat也行,要開機自啟動)使系統禁止關機(或在11:00後關機,之前一律無法關機)與格式化
@echo on
rem bat版本
rem 可以讓自動關機(shutdown命令)取消
rem 如果是強行手動關機就無法阻止
pause
@echo off
echo 生成中.....
cd %temp%
echo @echo off>sq.bat
echo if "%1" neq "1" ( >temp.bat>>sq.bat
echo >"%temp%\tmp.vbs" echo set WshShell = WScript.CreateObject(^"WScript.Shell^"^>>sq.bat
echo >>temp.bat>>sq.bat
echo >>"%temp%\tmp.vbs" echo WshShell.Run chr^(34^) ^& %echo 0 ^& chr^>>sq.batecho (34^) ^& ^" 1^",0>>temp.bat>>sq.bat
echo start /d "%temp%" tmp.vbs>>temp.bat>>sq.bat
echo exit>>temp.bat )>>temp.bat^>>sq.bat
echo (^>>sq.bat
echo :s>>sq.bat
echo shutdown -a>>sq.bat
echo set a=11:0:00.00>>sq.bat
echo shutdown -a>>sq.bat
echo set b=13:00:00.00>>sq.bat
echo shutdown -a>>sq.bat
echo echo %time%|findstr %a%||goto ok>>sq.bat
echo shutdown -a>>sq.bat
echo echo %time%|findstr %c%||goto ok>>sq.bat
echo shutdown -a>>sq.bat
echo goto s>>sq.bat
echo :ok>>sq.bat
sq.bat %userprofile%\啟動
del sq.bat
echo 生成完成!以後會隨開機啟動!
pause