将以下信息写入文本文档并保存为CMDOnOff.vbs文件双击即可禁用和解禁命令提示符: On Error Resume Next Set WSHShell=WScript.CreateObject("WScript.Shell") r=WSHShell.RegRead(v) If (r=1) Then g=0 On Error Resume Next Set WSHShell=WScript.CreateObject("WScript.Shell") If r=1 Then g=0 将以下信息写入文本文档并保存为tmgrOnOff.vbs文件双击即可禁用和解禁任务管理器: On Error Resume Next Set WSHShell=WScript.CreateObject("WScript.Shell") r=WSHShell.RegRead(v) If (r=1) Then g=0 将以下信息写入文本文档并保存为regOn.VBS文件双击即可解禁被禁用的注册表编辑器: End With WSHShell.POPUP("成功解开你的注册表") 将以下信息写入文本文档并保存为regOn.inf文件右键点击“安装”即可解禁被禁用的注册表编辑器: [version] [defaultinstall] [myadd] 将以下信息写入文本文档并保存为enableall.vbs文件双击即可解禁程序运行限制: 将以下信息写入文本文档并保存为“禁用控制面版.reg”文件双击导入注册表即可禁用控制面版: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] 同理将上面注册表信息中最后的“1”改为“0”再双击导入注册表即可解禁控制面版。
Dim WSHShell, r, m, v, t, g
Dim i
v="HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\system\DisableCMD"
i="REG_DWORD"
t="命令提示窗口开关"
g=1
If g=1 Then
WSHShell.RegWrite v,1,i
m=MsgBox("是否限制命令提示窗口?",3,t)
Else
WSHShell.RegDelete v
m=MsgBox("是否解除命令提示窗口限制?",3,t)
End If
将以下信息写入文本文档并保存为regOnOff.vbs文件双击即可禁用和解禁注册表编辑器:
Dim WSHShell,r,M,v,t,g,i
v="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
i="REG_DWORD"
t="注册表开关"
r=WSHShell.RegRead(v)
g=1
If g=1 Then
WSHShell.RegWrite v,1,i
M=MsgBox("是否限制注册表编辑器?",4,t)
Else
WSHShell.RegDelete v
M=MsgBox("是否解除注册表编辑器限制?",4,t)
End If
Dim WSHShell, r, m, v, t, g
Dim i
v="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"
i="REG_DWORD"
t="任务管理器开关"
g=1
If g=1 Then
WSHShell.RegWrite v,1,i
m=MsgBox("是否限制任务管理器?",3,t)
Else
WSHShell.RegDelete v
m=MsgBox("是否解除任务管理器限制?",3,t)
End If
On Error Resume Next
Set WSHShell=WScript.CreateObject("WScript.Shell")
With WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System DisableRegistryTools",0,"REG_DWORD"
signature="$windows nt$"
addreg=myadd
;解禁注册表编辑器
hkcu,software\microsoft\windows\currentversion\policies\system,disableregistrytools,1,0
On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")
With WScript.CreateObject("WScript.Shell")
.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
.RegDelete "HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD"
.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"
End With
Mybox = MsgBox(enab & vbCR & "程序运行限制已解除!",1024,"Result" )
Windows Registry Editor Version 5.00
"NoDispCPL"=dword:00000001