❶ 能不能用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