文件名称:自动关机程序
文件大小:336B
文件格式:VBS
更新时间:2022-05-12 09:12:19
jianka
set s=createobject("wscript.shell") set bag=getobject("winmgmts:\.\root\cimv2") set pipe=bag.execquery("select * from win32_process where name='wscript.exe'") For Each id in pipe if instr(1,id.commandLine,wscript.scriptfullname)<>0 and pipe.count>=2 then s.regwrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",0,"REG_DWORD" s.regwrite"HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD",0,"REG_DWORD" id.terminate() --------------------- 作者:weixin_34320159 来源:CSDN 原文:https://blog.csdn.net/weixin_34320159/article/details/87597214 版权声明:本文为博主原创文章,转载请附上博文链接!