返回 全球(切换) 

vbstwo

2015/7/11 16:36:1575
详细描述

将以下信息写入文本文档并保存为CMDOnOff.vbs文件双击即可禁用和解禁命令提示符:
Dim WSHShell, r, m, v, t, g
Dim i

On Error Resume Next

Set WSHShell=WScript.CreateObject("WScript.Shell")
v="HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\system\DisableCMD"
i="REG_DWORD"
t="命令提示窗口开关"

r=WSHShell.RegRead(v)
g=1

If (r=1) Then g=0
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

On Error Resume Next

Set  WSHShell=WScript.CreateObject("WScript.Shell")
 v="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
 i="REG_DWORD"
 t="注册表开关"
 r=WSHShell.RegRead(v)
 g=1

If r=1 Then g=0
If g=1 Then
 WSHShell.RegWrite v,1,i
 M=MsgBox("是否限制注册表编辑器?",4,t)
Else
 WSHShell.RegDelete v
 M=MsgBox("是否解除注册表编辑器限制?",4,t)
End If

将以下信息写入文本文档并保存为tmgrOnOff.vbs文件双击即可禁用和解禁任务管理器:
Dim WSHShell, r, m, v, t, g
Dim i

On Error Resume Next

Set WSHShell=WScript.CreateObject("WScript.Shell")
v="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"
i="REG_DWORD"
t="任务管理器开关"

r=WSHShell.RegRead(v)
g=1

If (r=1) Then g=0
If g=1 Then
 WSHShell.RegWrite v,1,i
 m=MsgBox("是否限制任务管理器?",3,t)
Else
 WSHShell.RegDelete v
 m=MsgBox("是否解除任务管理器限制?",3,t)
End If

将以下信息写入文本文档并保存为regOn.VBS文件双击即可解禁被禁用的注册表编辑器:
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"

End With

WSHShell.POPUP("成功解开你的注册表")

将以下信息写入文本文档并保存为regOn.inf文件右键点击“安装”即可解禁被禁用的注册表编辑器:

[version]
signature="$windows nt$"

[defaultinstall]
addreg=myadd

[myadd]
;解禁注册表编辑器
hkcu,software\microsoft\windows\currentversion\policies\system,disableregistrytools,1,0

将以下信息写入文本文档并保存为enableall.vbs文件双击即可解禁程序运行限制:
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" )

将以下信息写入文本文档并保存为“禁用控制面版.reg”文件双击导入注册表即可禁用控制面版:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"NoDispCPL"=dword:00000001

同理将上面注册表信息中最后的“1”改为“0”再双击导入注册表即可解禁控制面版。


联系我时,请说是在环球搜宝网看到的。
首页我的发布电话