不错的批处理脚本 第一部分
程序员文章站
2022-03-22 08:39:26
@echo off cls :列表选择 @echo off set :=:::::::::::::: set 以=明文bat&nbs...
@echo off
cls
:列表选择
@echo off
set :=::::::::::::::
set 以=明文bat 作者:
@title 列表选择-%以%
@prompt
@color a
cls
echo.
echo.
echo.
echo 1 恢复专区 ------恢复一切可禁止的恢复. --矛
echo 2 禁止专区 ------禁止一切可禁止的东东. --盾
echo 3 命令禁止 ------自定义禁止cmd下一些命令.
echo 4 母盘制作 ------防范与优化.
echo -------------------------------------------------------------------------
echo 如:输入5然后回车=进程查杀
echo 直接回车=刷新 qq然后回车=俺qq空间 q然后回车=退出
@set yslbxz=""
@set /p yslbxz=
if /i "%yslbxz%"=="1" goto 恢复专区
if /i "%yslbxz%"=="2" goto 禁止专区
if /i "%yslbxz%"=="3" goto 禁止cmd命令
if /i "%yslbxz%"=="4" goto 母盘制作
if /i "%yslbxz%"=="qq" start iexplore
if /i "%yslbxz%"=="q" (exit)
goto 列表选择
echo ----------------------------1.恢复专区----------------------------------->nul
:恢复专区
title 恢复专区-%以%
cls
echo ── ──
echo → 恢 复 专 区 ←
echo ----------------------------------------------------------------------
echo %:% ① 我的电脑-右键管理 %:% 恢复 ::
echo %:% ② 网络连接-本地连接 %:% ↓↓ ::
echo %:% ③ 我的电脑-右键属性 %:% ::
echo %:% ④ 注 册 表 %:% ::
echo %:% ⑤ 文件夹选项 %:% ::
echo %:% ⑥ 任务栏属性 %:% ::
echo %:% ⑦ 右键 %:% ::
echo %:% ⑧ 任务管理器 %:% ::
echo %:% ⑨ 注消 %:% ::
echo %:% ⑩ 锁定计算机 %:% ::
echo %:% ⑾ 更改密码 %:% ::
echo %:% ⑿ 控制台 %:% ::
echo %:% ⒀ ie下载 %:% ::
echo %:% ⒁ c m d %:% ↑↑ ::
echo %:% ⒂ internet属性 %:% 恢复 ::
echo ----------------------------------------------------------------------
echo 如果见不到更改变化-请f5刷新.
echo ----------------------------------------------------------------------
echo 恢复你需要的请输入对应值. 如:输入14然后回车=恢复使用cmd.
echo 按回车=刷新恢复列表 g=列表选择 qq=俺qq空间 q=退出
:jzzqzl1
@set jinzhi=""
@set /p jinzhi=
if /i "%jinzhi%"=="1" goto ①1
if /i "%jinzhi%"=="2" goto ②1
if /i "%jinzhi%"=="3" goto ③1
if /i "%jinzhi%"=="4" goto ④1
if /i "%jinzhi%"=="5" goto ⑤1
if /i "%jinzhi%"=="6" goto ⑥1
if /i "%jinzhi%"=="7" goto ⑦1
if /i "%jinzhi%"=="8" goto ⑧1
if /i "%jinzhi%"=="9" goto ⑨1
if /i "%jinzhi%"=="10" goto ⑩1
if /i "%jinzhi%"=="11" goto ⑾1
if /i "%jinzhi%"=="12" goto ⑿1
if /i "%jinzhi%"=="13" goto ⒀1
if /i "%jinzhi%"=="14" goto ⒁1
if /i "%jinzhi%"=="15" goto ⒂1
if /i "%jinzhi%"=="g" goto 列表选择
if /i "%jinzhi%"=="qq" start iexplore
if /i "%jinzhi%"=="q" (exit)
goto 恢复专区
:①1
reg add hkcu\software\policies\microsoft\mmc\{58221c67-ea27-11cf-adcf-00aa00a80033} /v restrict_run /t reg_dword /d 0 /f >nul
compmgmt.msc
echo %:% ① 我的电脑右键-管理 恢复 :: ok
goto jinzhijs1
:②1
reg delete "hkcu\software\policies\microsoft\windows\network connections" /f >nul 4>nul 2>nul
echo [version] >%temp%\netman.inf
echo signature="$windows nt$" >>%temp%\netman.inf
echo [defaultinstall.services] >>%temp%\netman.inf
echo addservice=netman,,my_addservice_name >>%temp%\netman.inf
echo [my_addservice_name] >>%temp%\netman.inf
echo servicetype=0x20 >>%temp%\netman.inf
echo starttype=2 >>%temp%\netman.inf
echo errorcontrol=1 >>%temp%\netman.inf
echo servicebinary=%systemroot%\system32\svchost.exe -k netsvcs >>%temp%\netman.inf
rundll32 syssetup,setupinfobjectinstallaction defaultinstall 128 %temp%\netman.inf >nul 4>nul 2>nul
net start netman >nul 4>nul 2>nul
del %temp%\netman.inf
ncpa.cpl
echo %:% ② 网络连接-本地连接 恢复 :: ok
goto jinzhijs1
:③1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nopropertiesmycomputer /t reg_dword /d 0 /f >nul
sysdm.cpl
echo %:% ③ 我的电脑-右键属性 恢复 :: ok
goto jinzhijs1
:④1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disableregistrytools /t reg_dword /d 0 /f >nul
regedit
echo %:% ④ 注 册 表 恢复 :: ok
goto jinzhijs1
:⑤1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nofolderoptions /t reg_dword /d 0 /f >nul
echo %:% ⑤ 文件夹选项 恢复 :: ok
goto jinzhijs1
:⑥1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nosettaskbar /t reg_dword /d 0 /f >nul
echo %:% ⑥ 任务栏属性 恢复 :: ok
goto jinzhijs1
:⑦1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v noviewcontextmenu /t reg_dword /d 0 /f >nul
echo %:% ⑦ 右键 恢复 :: ok
goto jinzhijs1
:⑧1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disabletaskmgr /t reg_dword /d 0 /f >nul
taskmgr
echo %:% ⑧ 任务管理器 恢复 :: ok
goto jinzhijs1
:⑨1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nologoff /t reg_dword /d 0 /f >nul
echo %:% ⑨ 注消 恢复 :: ok
goto jinzhijs1
:⑩1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablelockworkstation /t reg_dword /d 0 /f >nul
echo %:% ⑩ 锁定计算机 恢复 :: ok
goto jinzhijs1
:⑾1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablechangepassword /t reg_dword /d 0 /f >nul
echo %:% ⑾ 更改密码 恢复 :: ok
goto jinzhijs1
:⑿1
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 0 /f >nul
echo %:% ⑿ 控制台 恢复 :: ok
goto jinzhijs1
:⒀1
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 0 /f >nul
echo %:% ⒀ ie下载 恢复 :: ok
echo 注:虽然恢复了ie下载,可是还可以用软件下载. 如:迅雷
goto jinzhijs1
:⒁1
reg add hkcu\software\policies\microsoft\windows\system\ /v disablecmd /t reg_dword /d 0 /f >nul
echo %:% ⒁ c m d 恢复 :: ok
goto jinzhijs1
:⒂1
::常规
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v generaltab /t reg_dword /d 0 /f >nul
::安全
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v securitytab /t reg_dword /d 0 /f >nul
::隐私
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v privacytab /t reg_dword /d 0 /f >nul
::内容
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v contenttab /t reg_dword /d 0 /f >nul
::连接
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v connectionstab /t reg_dword /d 0 /f >nul
::程序
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v programstab /t reg_dword /d 0 /f >nul
::高级
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v advancedtab /t reg_dword /d 0 /f >nul
echo %:% ⒂ internet属性 恢复 :: ok
goto jinzhijs1
:jinzhijs1
gpupdate /force>nul
echo ───────────────────────────────────
echo 提醒:看不到恢复列表.直接回车可以刷新哦.
@set jinzhi=""
goto jzzqzl1
echo ----------------------------2.禁止专区----------------------------------->nul
:禁止专区
@title 禁止专区-%以%
cls
echo ── ──
echo → 禁 止 专 区 ←
echo ----------------------------------------------------------------------
echo %:% ① 我的电脑-右键管理 %:% 禁止 ::
echo %:% ② 网络连接-本地连接 %:% ↓↓ ::
echo %:% ③ 我的电脑-右键属性 %:% ::
echo %:% ④ 注 册 表 %:% ::
echo %:% ⑤ 文件夹选项 %:% ::
echo %:% ⑥ 任务栏属性 %:% ::
echo %:% ⑦ 右键 %:% ::
echo %:% ⑧ 任务管理器 %:% ::
echo %:% ⑨ 注消 %:% ::
echo %:% ⑩ 锁定计算机 %:% ::
echo %:% ⑾ 更改密码 %:% ::
echo %:% ⑿ 控制台 %:% ::
echo %:% ⒀ ie下载 %:% ::
echo %:% ⒁ c m d %:% ↑↑ ::
echo %:% ⒂ internet属性 %:% 禁止 ::
echo ----------------------------------------------------------------------
echo 如见不到更改变化-请f5刷新.
echo ----------------------------------------------------------------------
echo 禁止你需要的请输入对应值. 如:输入14然后回车=禁止使用cmd.
echo 按回车=刷新禁止列表 g=列表选择 qq=俺qq空间 q=退出
:jzzqzl
@set jinzhi=""
@set /p jinzhi=
if /i "%jinzhi%"=="1" goto ①
if /i "%jinzhi%"=="2" goto ②
if /i "%jinzhi%"=="3" goto ③
if /i "%jinzhi%"=="4" goto ④
if /i "%jinzhi%"=="5" goto ⑤
if /i "%jinzhi%"=="6" goto ⑥
if /i "%jinzhi%"=="7" goto ⑦
if /i "%jinzhi%"=="8" goto ⑧
if /i "%jinzhi%"=="9" goto ⑨
if /i "%jinzhi%"=="10" goto ⑩
if /i "%jinzhi%"=="11" goto ⑾
if /i "%jinzhi%"=="12" goto ⑿
if /i "%jinzhi%"=="13" goto ⒀
if /i "%jinzhi%"=="14" goto ⒁
if /i "%jinzhi%"=="15" goto ⒂
if /i "%jinzhi%"=="g" goto 列表选择
if /i "%jinzhi%"=="qq" start iexplore
if /i "%jinzhi%"=="q" (exit)
goto 禁止专区
:①
reg add hkcu\software\policies\microsoft\mmc\{58221c67-ea27-11cf-adcf-00aa00a80033} /v restrict_run /t reg_dword /d 1 /f >nul
echo %:% ① 我的电脑右键-管理 禁止 :: ok
goto jinzhijs
:②
reg add "hkcu\software\policies\microsoft\windows\network connections" /v nc_enableadminprohibits /t reg_dword /d 1 /f >nul
reg add "hkcu\software\policies\microsoft\windows\network connections" /v nc_lanproperties /t reg_dword /d 1 /f >nul
echo %:% ② 网络连接-本地连接 禁止 :: ok
goto jinzhijs
:③
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nopropertiesmycomputer /t reg_dword /d 1 /f >nul
echo %:% ③ 我的电脑-右键属性 禁止 :: ok
goto jinzhijs
:④
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disableregistrytools /t reg_dword /d 1 /f >nul
echo %:% ④ 注 册 表 禁止 :: ok
goto jinzhij
:⑤
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nofolderoptions /t reg_dword /d 1 /f >nul
echo %:% ⑤ 文件夹选项 禁止 :: ok
goto jinzhijs
:⑥
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nosettaskbar /t reg_dword /d 1 /f >nul
echo %:% ⑥ 任务栏属性 禁止 :: ok
goto jinzhijs
:⑦
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v noviewcontextmenu /t reg_dword /d 1 /f >nul
echo %:% ⑦ 右键 禁止 :: ok
goto jinzhijs
:⑧
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disabletaskmgr /t reg_dword /d 1 /f >nul
echo %:% ⑧ 任务管理器 禁止 :: ok
goto jinzhijs
:⑨
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nologoff /t reg_dword /d 1 /f >nul
echo %:% ⑨ 注消 禁止 :: ok
goto jinzhijs
:⑩
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablelockworkstation /t reg_dword /d 1 /f >nul
echo %:% ⑩ 锁定计算机 禁止 :: ok
goto jinzhijs
:⑾
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablechangepassword /t reg_dword /d 1 /f >nul
echo %:% ⑾ 更改密码 禁止 :: ok
goto jinzhijs
:⑿
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 1 /f >nul
echo %:% ⑿ 控制台 禁止 :: ok
goto jinzhijs
:⒀
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 3 /f >nul
echo %:% ⒀ ie下载 禁止 :: ok
echo 注:虽然禁止了ie下载,可是还可以用软件下载. 如:迅雷
goto jinzhijs
:⒁
reg add hkcu\software\policies\microsoft\windows\system\ /v disablecmd /t reg_dword /d 2 /f >nul
echo %:% ⒁ c m d 禁止 :: ok
goto jinzhijs
:⒂
::常规
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v generaltab /t reg_dword /d 1 /f >nul
::安全
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v securitytab /t reg_dword /d 1 /f >nul
::隐私
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v privacytab /t reg_dword /d 1 /f >nul
::内容
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v contenttab /t reg_dword /d 1 /f >nul
::连接
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v connectionstab /t reg_dword /d 1 /f >nul
::程序
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v programstab /t reg_dword /d 1 /f >nul
::高级
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v advancedtab /t reg_dword /d 1 /f >nul
echo %:% ⒂ internet属性 禁止 :: ok
goto jinzhijs
:jinzhijs
gpupdate /force>nul
echo ───────────────────────────────────
echo 提醒:看不到禁止列表.直接回车可以刷新哦.
cls
:列表选择
@echo off
set :=::::::::::::::
set 以=明文bat 作者:
@title 列表选择-%以%
@prompt
@color a
cls
echo.
echo.
echo.
echo 1 恢复专区 ------恢复一切可禁止的恢复. --矛
echo 2 禁止专区 ------禁止一切可禁止的东东. --盾
echo 3 命令禁止 ------自定义禁止cmd下一些命令.
echo 4 母盘制作 ------防范与优化.
echo -------------------------------------------------------------------------
echo 如:输入5然后回车=进程查杀
echo 直接回车=刷新 qq然后回车=俺qq空间 q然后回车=退出
@set yslbxz=""
@set /p yslbxz=
if /i "%yslbxz%"=="1" goto 恢复专区
if /i "%yslbxz%"=="2" goto 禁止专区
if /i "%yslbxz%"=="3" goto 禁止cmd命令
if /i "%yslbxz%"=="4" goto 母盘制作
if /i "%yslbxz%"=="qq" start iexplore
if /i "%yslbxz%"=="q" (exit)
goto 列表选择
echo ----------------------------1.恢复专区----------------------------------->nul
:恢复专区
title 恢复专区-%以%
cls
echo ── ──
echo → 恢 复 专 区 ←
echo ----------------------------------------------------------------------
echo %:% ① 我的电脑-右键管理 %:% 恢复 ::
echo %:% ② 网络连接-本地连接 %:% ↓↓ ::
echo %:% ③ 我的电脑-右键属性 %:% ::
echo %:% ④ 注 册 表 %:% ::
echo %:% ⑤ 文件夹选项 %:% ::
echo %:% ⑥ 任务栏属性 %:% ::
echo %:% ⑦ 右键 %:% ::
echo %:% ⑧ 任务管理器 %:% ::
echo %:% ⑨ 注消 %:% ::
echo %:% ⑩ 锁定计算机 %:% ::
echo %:% ⑾ 更改密码 %:% ::
echo %:% ⑿ 控制台 %:% ::
echo %:% ⒀ ie下载 %:% ::
echo %:% ⒁ c m d %:% ↑↑ ::
echo %:% ⒂ internet属性 %:% 恢复 ::
echo ----------------------------------------------------------------------
echo 如果见不到更改变化-请f5刷新.
echo ----------------------------------------------------------------------
echo 恢复你需要的请输入对应值. 如:输入14然后回车=恢复使用cmd.
echo 按回车=刷新恢复列表 g=列表选择 qq=俺qq空间 q=退出
:jzzqzl1
@set jinzhi=""
@set /p jinzhi=
if /i "%jinzhi%"=="1" goto ①1
if /i "%jinzhi%"=="2" goto ②1
if /i "%jinzhi%"=="3" goto ③1
if /i "%jinzhi%"=="4" goto ④1
if /i "%jinzhi%"=="5" goto ⑤1
if /i "%jinzhi%"=="6" goto ⑥1
if /i "%jinzhi%"=="7" goto ⑦1
if /i "%jinzhi%"=="8" goto ⑧1
if /i "%jinzhi%"=="9" goto ⑨1
if /i "%jinzhi%"=="10" goto ⑩1
if /i "%jinzhi%"=="11" goto ⑾1
if /i "%jinzhi%"=="12" goto ⑿1
if /i "%jinzhi%"=="13" goto ⒀1
if /i "%jinzhi%"=="14" goto ⒁1
if /i "%jinzhi%"=="15" goto ⒂1
if /i "%jinzhi%"=="g" goto 列表选择
if /i "%jinzhi%"=="qq" start iexplore
if /i "%jinzhi%"=="q" (exit)
goto 恢复专区
:①1
reg add hkcu\software\policies\microsoft\mmc\{58221c67-ea27-11cf-adcf-00aa00a80033} /v restrict_run /t reg_dword /d 0 /f >nul
compmgmt.msc
echo %:% ① 我的电脑右键-管理 恢复 :: ok
goto jinzhijs1
:②1
reg delete "hkcu\software\policies\microsoft\windows\network connections" /f >nul 4>nul 2>nul
echo [version] >%temp%\netman.inf
echo signature="$windows nt$" >>%temp%\netman.inf
echo [defaultinstall.services] >>%temp%\netman.inf
echo addservice=netman,,my_addservice_name >>%temp%\netman.inf
echo [my_addservice_name] >>%temp%\netman.inf
echo servicetype=0x20 >>%temp%\netman.inf
echo starttype=2 >>%temp%\netman.inf
echo errorcontrol=1 >>%temp%\netman.inf
echo servicebinary=%systemroot%\system32\svchost.exe -k netsvcs >>%temp%\netman.inf
rundll32 syssetup,setupinfobjectinstallaction defaultinstall 128 %temp%\netman.inf >nul 4>nul 2>nul
net start netman >nul 4>nul 2>nul
del %temp%\netman.inf
ncpa.cpl
echo %:% ② 网络连接-本地连接 恢复 :: ok
goto jinzhijs1
:③1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nopropertiesmycomputer /t reg_dword /d 0 /f >nul
sysdm.cpl
echo %:% ③ 我的电脑-右键属性 恢复 :: ok
goto jinzhijs1
:④1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disableregistrytools /t reg_dword /d 0 /f >nul
regedit
echo %:% ④ 注 册 表 恢复 :: ok
goto jinzhijs1
:⑤1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nofolderoptions /t reg_dword /d 0 /f >nul
echo %:% ⑤ 文件夹选项 恢复 :: ok
goto jinzhijs1
:⑥1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nosettaskbar /t reg_dword /d 0 /f >nul
echo %:% ⑥ 任务栏属性 恢复 :: ok
goto jinzhijs1
:⑦1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v noviewcontextmenu /t reg_dword /d 0 /f >nul
echo %:% ⑦ 右键 恢复 :: ok
goto jinzhijs1
:⑧1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disabletaskmgr /t reg_dword /d 0 /f >nul
taskmgr
echo %:% ⑧ 任务管理器 恢复 :: ok
goto jinzhijs1
:⑨1
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nologoff /t reg_dword /d 0 /f >nul
echo %:% ⑨ 注消 恢复 :: ok
goto jinzhijs1
:⑩1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablelockworkstation /t reg_dword /d 0 /f >nul
echo %:% ⑩ 锁定计算机 恢复 :: ok
goto jinzhijs1
:⑾1
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablechangepassword /t reg_dword /d 0 /f >nul
echo %:% ⑾ 更改密码 恢复 :: ok
goto jinzhijs1
:⑿1
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 0 /f >nul
echo %:% ⑿ 控制台 恢复 :: ok
goto jinzhijs1
:⒀1
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 0 /f >nul
echo %:% ⒀ ie下载 恢复 :: ok
echo 注:虽然恢复了ie下载,可是还可以用软件下载. 如:迅雷
goto jinzhijs1
:⒁1
reg add hkcu\software\policies\microsoft\windows\system\ /v disablecmd /t reg_dword /d 0 /f >nul
echo %:% ⒁ c m d 恢复 :: ok
goto jinzhijs1
:⒂1
::常规
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v generaltab /t reg_dword /d 0 /f >nul
::安全
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v securitytab /t reg_dword /d 0 /f >nul
::隐私
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v privacytab /t reg_dword /d 0 /f >nul
::内容
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v contenttab /t reg_dword /d 0 /f >nul
::连接
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v connectionstab /t reg_dword /d 0 /f >nul
::程序
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v programstab /t reg_dword /d 0 /f >nul
::高级
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v advancedtab /t reg_dword /d 0 /f >nul
echo %:% ⒂ internet属性 恢复 :: ok
goto jinzhijs1
:jinzhijs1
gpupdate /force>nul
echo ───────────────────────────────────
echo 提醒:看不到恢复列表.直接回车可以刷新哦.
@set jinzhi=""
goto jzzqzl1
echo ----------------------------2.禁止专区----------------------------------->nul
:禁止专区
@title 禁止专区-%以%
cls
echo ── ──
echo → 禁 止 专 区 ←
echo ----------------------------------------------------------------------
echo %:% ① 我的电脑-右键管理 %:% 禁止 ::
echo %:% ② 网络连接-本地连接 %:% ↓↓ ::
echo %:% ③ 我的电脑-右键属性 %:% ::
echo %:% ④ 注 册 表 %:% ::
echo %:% ⑤ 文件夹选项 %:% ::
echo %:% ⑥ 任务栏属性 %:% ::
echo %:% ⑦ 右键 %:% ::
echo %:% ⑧ 任务管理器 %:% ::
echo %:% ⑨ 注消 %:% ::
echo %:% ⑩ 锁定计算机 %:% ::
echo %:% ⑾ 更改密码 %:% ::
echo %:% ⑿ 控制台 %:% ::
echo %:% ⒀ ie下载 %:% ::
echo %:% ⒁ c m d %:% ↑↑ ::
echo %:% ⒂ internet属性 %:% 禁止 ::
echo ----------------------------------------------------------------------
echo 如见不到更改变化-请f5刷新.
echo ----------------------------------------------------------------------
echo 禁止你需要的请输入对应值. 如:输入14然后回车=禁止使用cmd.
echo 按回车=刷新禁止列表 g=列表选择 qq=俺qq空间 q=退出
:jzzqzl
@set jinzhi=""
@set /p jinzhi=
if /i "%jinzhi%"=="1" goto ①
if /i "%jinzhi%"=="2" goto ②
if /i "%jinzhi%"=="3" goto ③
if /i "%jinzhi%"=="4" goto ④
if /i "%jinzhi%"=="5" goto ⑤
if /i "%jinzhi%"=="6" goto ⑥
if /i "%jinzhi%"=="7" goto ⑦
if /i "%jinzhi%"=="8" goto ⑧
if /i "%jinzhi%"=="9" goto ⑨
if /i "%jinzhi%"=="10" goto ⑩
if /i "%jinzhi%"=="11" goto ⑾
if /i "%jinzhi%"=="12" goto ⑿
if /i "%jinzhi%"=="13" goto ⒀
if /i "%jinzhi%"=="14" goto ⒁
if /i "%jinzhi%"=="15" goto ⒂
if /i "%jinzhi%"=="g" goto 列表选择
if /i "%jinzhi%"=="qq" start iexplore
if /i "%jinzhi%"=="q" (exit)
goto 禁止专区
:①
reg add hkcu\software\policies\microsoft\mmc\{58221c67-ea27-11cf-adcf-00aa00a80033} /v restrict_run /t reg_dword /d 1 /f >nul
echo %:% ① 我的电脑右键-管理 禁止 :: ok
goto jinzhijs
:②
reg add "hkcu\software\policies\microsoft\windows\network connections" /v nc_enableadminprohibits /t reg_dword /d 1 /f >nul
reg add "hkcu\software\policies\microsoft\windows\network connections" /v nc_lanproperties /t reg_dword /d 1 /f >nul
echo %:% ② 网络连接-本地连接 禁止 :: ok
goto jinzhijs
:③
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nopropertiesmycomputer /t reg_dword /d 1 /f >nul
echo %:% ③ 我的电脑-右键属性 禁止 :: ok
goto jinzhijs
:④
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disableregistrytools /t reg_dword /d 1 /f >nul
echo %:% ④ 注 册 表 禁止 :: ok
goto jinzhij
:⑤
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nofolderoptions /t reg_dword /d 1 /f >nul
echo %:% ⑤ 文件夹选项 禁止 :: ok
goto jinzhijs
:⑥
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nosettaskbar /t reg_dword /d 1 /f >nul
echo %:% ⑥ 任务栏属性 禁止 :: ok
goto jinzhijs
:⑦
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v noviewcontextmenu /t reg_dword /d 1 /f >nul
echo %:% ⑦ 右键 禁止 :: ok
goto jinzhijs
:⑧
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disabletaskmgr /t reg_dword /d 1 /f >nul
echo %:% ⑧ 任务管理器 禁止 :: ok
goto jinzhijs
:⑨
reg add hkcu\software\microsoft\windows\currentversion\policies\explorer /v nologoff /t reg_dword /d 1 /f >nul
echo %:% ⑨ 注消 禁止 :: ok
goto jinzhijs
:⑩
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablelockworkstation /t reg_dword /d 1 /f >nul
echo %:% ⑩ 锁定计算机 禁止 :: ok
goto jinzhijs
:⑾
reg add hkcu\software\microsoft\windows\currentversion\policies\system /v disablechangepassword /t reg_dword /d 1 /f >nul
echo %:% ⑾ 更改密码 禁止 :: ok
goto jinzhijs
:⑿
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 1 /f >nul
echo %:% ⑿ 控制台 禁止 :: ok
goto jinzhijs
:⒀
reg add hkcu\software\policies\microsoft\mmc /v restrictauthormode /t reg_dword /d 3 /f >nul
echo %:% ⒀ ie下载 禁止 :: ok
echo 注:虽然禁止了ie下载,可是还可以用软件下载. 如:迅雷
goto jinzhijs
:⒁
reg add hkcu\software\policies\microsoft\windows\system\ /v disablecmd /t reg_dword /d 2 /f >nul
echo %:% ⒁ c m d 禁止 :: ok
goto jinzhijs
:⒂
::常规
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v generaltab /t reg_dword /d 1 /f >nul
::安全
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v securitytab /t reg_dword /d 1 /f >nul
::隐私
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v privacytab /t reg_dword /d 1 /f >nul
::内容
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v contenttab /t reg_dword /d 1 /f >nul
::连接
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v connectionstab /t reg_dword /d 1 /f >nul
::程序
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v programstab /t reg_dword /d 1 /f >nul
::高级
reg add "hkcu\software\policies\microsoft\internet explorer\control panel" /v advancedtab /t reg_dword /d 1 /f >nul
echo %:% ⒂ internet属性 禁止 :: ok
goto jinzhijs
:jinzhijs
gpupdate /force>nul
echo ───────────────────────────────────
echo 提醒:看不到禁止列表.直接回车可以刷新哦.
上一篇: vector_insert
下一篇: MD和RD命令的使用方法