- ·上一篇文章:用VBS禁止运行指定的程序
- ·下一篇文章:批处理加密与病毒代码免杀方法总结
- ·百度中搜索更多的关于“用批处理解除网吧常见限制”相关内容
- ·谷歌中搜索更多的关于“用批处理解除网吧常见限制”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
用批处理解除网吧常见限制
'解除网吧常见限制
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"

