当前位置:DOS资源站资料中心VBS脚本 → 用批处理解除网吧常见限制

用批处理解除网吧常见限制

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2008-4-24 20:57:32

'解除网吧常见限制

On Error Resume Next

Set WS=WScript.CreateObject("WScript.Shell")

'允许使用组策略
WS.RegWrite "HKCU\Software\Policies\Microsoft\MMC\RestrictToPermittedSnapins",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Policies\Microsoft\MMC\RestrictToPermittedSnapins",0,"REG_DWORD"

'允许使用注册表编辑器
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools",0,"REG_DWORD"

'允许使用CMD
WS.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Policies\Microsoft\Windows\System\DisableCMD",0,"REG_DWORD"

'允许桌面及任务栏右键菜单
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewContextMenu",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewContextMenu",0,"REG_DWORD"
WS.RegWrite "HKCU\software\Microsoft\windows\CurrentVersion\Policies\Explorer\NOTraycontextMenu",0,"REG_DWORD"
WS.RegWrite "HKLM\software\Microsoft\windows\CurrentVersion\Policies\Explorer\NOTraycontextMenu",0,"REG_DWORD"
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSetTaskBar",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSetTaskBar",0,"REG_DWORD"

'允许访问磁盘驱动
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive",0,"REG_DWORD"
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives",0,"REG_DWORD"

'允许使用文件夹选项
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFolderOptions",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFolderOptions",0,"REG_DWORD"

'允许开始菜单的运行
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun",0,"REG_DWORD"

'允许使用任务管理器
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",0,"REG_DWORD"

'允许使用控制面板
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel",0,"REG_DWORD"

'允许使用网络属性
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoNetSetup",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoNetSetup",0,"REG_DWORD"

'允许使用资源管理器的安全选项
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSecurityTab",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSecurityTab",0,"REG_DWORD"

'解除限制“禁止运行指定程序”
WS.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisAllowRun",0,"REG_DWORD"
WS.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisAllowRun",0,"REG_DWORD"

'恢复Reg文件关联
WS.RegWrite "HKCR\.reg\","regfile","REG_SZ"