不错的批处理脚本 第一部分
不错的批处理脚本 第一部分
发布时间:2016-12-28 来源:查字典编辑
摘要:@echooffcls:列表选择@echooffset:=::::::::::::::set以=明文BAT作者:@title列表选择-%以%...

@echooff

cls

:列表选择

@echooff

set:=::::::::::::::

set以=明文BAT作者:

@title列表选择-%以%

@PROMPT

@colora

cls

echo.

echo.

echo.

echo1恢复专区------恢复一切可禁止的恢复.--矛

echo2禁止专区------禁止一切可禁止的东东.--盾

echo3命令禁止------自定义禁止CMD下一些命令.

echo4母盘制作------防范与优化.

echo-------------------------------------------------------------------------

echo如:输入5然后回车=进程查杀

echo直接回车=刷新QQ然后回车=俺QQ空间Q然后回车=退出

@setyslbxz=""

@set/pyslbxz=

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"startiexplore

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%:%⒁CMD%:%↑↑::

echo%:%⒂INTERNET属性%:%恢复::

echo----------------------------------------------------------------------

echo如果见不到更改变化-请F5刷新.

echo----------------------------------------------------------------------

echo恢复你需要的请输入对应值.如:输入14然后回车=恢复使用CMD.

echo按回车=刷新恢复列表G=列表选择QQ=俺QQ空间Q=退出

:jzzqzl1

@setjinzhi=""

@set/pjinzhi=

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"startiexplore

if/I"%jinzhi%"=="q"(EXIT)

goto恢复专区

:①1

REGADDHKCUSoftwarePoliciesMicrosoftMMC{58221C67-EA27-11CF-ADCF-00AA00A80033}/vRestrict_Run/tREG_DWORD/d0/F>nul

compmgmt.msc

echo%:%①我的电脑右键-管理恢复::OK

gotojinzhijs1

:②1

REGDELETE"HKCUSoftwarePoliciesMicrosoftWindowsNetworkConnections"/F>nul4>nul2>nul

echo[Version]>%temp%Netman.inf

echoSignature="$WINDOWSNT$">>%temp%Netman.inf

echo[DefaultInstall.Services]>>%temp%Netman.inf

echoAddService=Netman,,My_AddService_Name>>%temp%Netman.inf

echo[My_AddService_Name]>>%temp%Netman.inf

echoServiceType=0x20>>%temp%Netman.inf

echoStartType=2>>%temp%Netman.inf

echoErrorControl=1>>%temp%Netman.inf

echoServiceBinary=%SystemRoot%System32svchost.exe-knetsvcs>>%temp%Netman.inf

rundll32syssetup,SetupInfObjectInstallActionDefaultInstall128%temp%Netman.inf>nul4>nul2>nul

netstartnetman>nul4>nul2>nul

del%temp%Netman.inf

ncpa.cpl

echo%:%②网络连接-本地连接恢复::OK

gotojinzhijs1

:③1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNopropertiesMyComputer/tREG_DWORD/d0/F>nul

sysdm.cpl

echo%:%③我的电脑-右键属性恢复::OK

gotojinzhijs1

:④1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableRegistryTools/tREG_DWORD/d0/F>nul

regedit

echo%:%④注册表恢复::OK

gotojinzhijs1

:⑤1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoFolderOptions/tREG_DWORD/d0/F>nul

echo%:%⑤文件夹选项恢复::OK

gotojinzhijs1

:⑥1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoSetTaskbar/tREG_DWORD/d0/F>nul

echo%:%⑥任务栏属性恢复::OK

gotojinzhijs1

:⑦1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoViewContextMenu/tREG_DWORD/d0/F>nul

echo%:%⑦右键恢复::OK

gotojinzhijs1

:⑧1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableTaskMgr/tREG_DWORD/d0/F>nul

taskmgr

echo%:%⑧任务管理器恢复::OK

gotojinzhijs1

:⑨1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoLogoff/tREG_DWORD/d0/F>nul

echo%:%⑨注消恢复::OK

gotojinzhijs1

:⑩1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableLockWorkstation/tREG_DWORD/d0/F>nul

echo%:%⑩锁定计算机恢复::OK

gotojinzhijs1

:⑾1

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableChangePassword/tREG_DWORD/d0/F>nul

echo%:%⑾更改密码恢复::OK

gotojinzhijs1

:⑿1

REGADDHKCUSoftwarePoliciesMicrosoftMMC/vRestrictAuthorMode/tREG_DWORD/d0/F>nul

echo%:%⑿控制台恢复::OK

gotojinzhijs1

:⒀1

REGADDHKCUSoftwarePoliciesMicrosoftMMC/vRestrictAuthorMode/tREG_DWORD/d0/F>nul

echo%:%⒀IE下载恢复::OK

echo注:虽然恢复了IE下载,可是还可以用软件下载.如:迅雷

gotojinzhijs1

:⒁1

REGADDHKCUSoftwarePoliciesMicrosoftWindowsSystem/vDisableCMD/tREG_DWORD/d0/F>nul

echo%:%⒁CMD恢复::OK

gotojinzhijs1

:⒂1

::常规

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vGeneralTab/tREG_DWORD/d0/F>nul

::安全

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vSecurityTab/tREG_DWORD/d0/F>nul

::隐私

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vPrivacyTab/tREG_DWORD/d0/F>nul

::内容

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vContentTab/tREG_DWORD/d0/F>nul

::连接

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vConnectionsTab/tREG_DWORD/d0/F>nul

::程序

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vProgramsTab/tREG_DWORD/d0/F>nul

::高级

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vAdvancedTab/tREG_DWORD/d0/F>nul

echo%:%⒂INTERNET属性恢复::OK

gotojinzhijs1

:jinzhijs1

gpupdate/force>nul

echo───────────────────────────────────

echo提醒:看不到恢复列表.直接回车可以刷新哦.

@setjinzhi=""

gotojzzqzl1

echo----------------------------2.禁止专区----------------------------------->nul

:禁止专区

@title禁止专区-%以%

cls

echo────

echo→禁止专区←

echo----------------------------------------------------------------------

echo%:%①我的电脑-右键管理%:%禁止::

echo%:%②网络连接-本地连接%:%↓↓::

echo%:%③我的电脑-右键属性%:%::

echo%:%④注册表%:%::

echo%:%⑤文件夹选项%:%::

echo%:%⑥任务栏属性%:%::

echo%:%⑦右键%:%::

echo%:%⑧任务管理器%:%::

echo%:%⑨注消%:%::

echo%:%⑩锁定计算机%:%::

echo%:%⑾更改密码%:%::

echo%:%⑿控制台%:%::

echo%:%⒀IE下载%:%::

echo%:%⒁CMD%:%↑↑::

echo%:%⒂INTERNET属性%:%禁止::

echo----------------------------------------------------------------------

echo如见不到更改变化-请F5刷新.

echo----------------------------------------------------------------------

echo禁止你需要的请输入对应值.如:输入14然后回车=禁止使用CMD.

echo按回车=刷新禁止列表G=列表选择QQ=俺QQ空间Q=退出

:jzzqzl

@setjinzhi=""

@set/pjinzhi=

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"startiexplore

if/I"%jinzhi%"=="q"(EXIT)

goto禁止专区

:①

REGADDHKCUSoftwarePoliciesMicrosoftMMC{58221C67-EA27-11CF-ADCF-00AA00A80033}/vRestrict_Run/tREG_DWORD/d1/F>nul

echo%:%①我的电脑右键-管理禁止::OK

gotojinzhijs

:②

REGADD"HKCUSoftwarePoliciesMicrosoftWindowsNetworkConnections"/vNC_EnableAdminProhibits/tREG_DWORD/d1/F>nul

REGADD"HKCUSoftwarePoliciesMicrosoftWindowsNetworkConnections"/vNC_LanProperties/tREG_DWORD/d1/F>nul

echo%:%②网络连接-本地连接禁止::OK

gotojinzhijs

:③

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNopropertiesMyComputer/tREG_DWORD/d1/F>nul

echo%:%③我的电脑-右键属性禁止::OK

gotojinzhijs

:④

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableRegistryTools/tREG_DWORD/d1/F>nul

echo%:%④注册表禁止::OK

gotojinzhij

:⑤

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoFolderOptions/tREG_DWORD/d1/F>nul

echo%:%⑤文件夹选项禁止::OK

gotojinzhijs

:⑥

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoSetTaskbar/tREG_DWORD/d1/F>nul

echo%:%⑥任务栏属性禁止::OK

gotojinzhijs

:⑦

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoViewContextMenu/tREG_DWORD/d1/F>nul

echo%:%⑦右键禁止::OK

gotojinzhijs

:⑧

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableTaskMgr/tREG_DWORD/d1/F>nul

echo%:%⑧任务管理器禁止::OK

gotojinzhijs

:⑨

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer/vNoLogoff/tREG_DWORD/d1/F>nul

echo%:%⑨注消禁止::OK

gotojinzhijs

:⑩

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableLockWorkstation/tREG_DWORD/d1/F>nul

echo%:%⑩锁定计算机禁止::OK

gotojinzhijs

:⑾

REGADDHKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem/vDisableChangePassword/tREG_DWORD/d1/F>nul

echo%:%⑾更改密码禁止::OK

gotojinzhijs

:⑿

REGADDHKCUSoftwarePoliciesMicrosoftMMC/vRestrictAuthorMode/tREG_DWORD/d1/F>nul

echo%:%⑿控制台禁止::OK

gotojinzhijs

:⒀

REGADDHKCUSoftwarePoliciesMicrosoftMMC/vRestrictAuthorMode/tREG_DWORD/d3/F>nul

echo%:%⒀IE下载禁止::OK

echo注:虽然禁止了IE下载,可是还可以用软件下载.如:迅雷

gotojinzhijs

:⒁

REGADDHKCUSoftwarePoliciesMicrosoftWindowsSystem/vDisableCMD/tREG_DWORD/d2/F>nul

echo%:%⒁CMD禁止::OK

gotojinzhijs

:⒂

::常规

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vGeneralTab/tREG_DWORD/d1/F>nul

::安全

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vSecurityTab/tREG_DWORD/d1/F>nul

::隐私

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vPrivacyTab/tREG_DWORD/d1/F>nul

::内容

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vContentTab/tREG_DWORD/d1/F>nul

::连接

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vConnectionsTab/tREG_DWORD/d1/F>nul

::程序

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vProgramsTab/tREG_DWORD/d1/F>nul

::高级

REGADD"HKCUSoftwarePoliciesMicrosoftInternetExplorerControlPanel"/vAdvancedTab/tREG_DWORD/d1/F>nul

echo%:%⒂INTERNET属性禁止::OK

gotojinzhijs

:jinzhijs

gpupdate/force>nul

echo───────────────────────────────────

echo提醒:看不到禁止列表.直接回车可以刷新哦.

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新DOS/BAT学习
热门DOS/BAT学习
脚本专栏子分类