一个不错的优化系统的批处理

2019-09-19 07:09:50王旭

if /i "%choice3%"=="3" goto begin 
if /i "%choice3%"=="4" goto end 
echo 选择无效,请重新输入 
echo. 
goto Choice3 

:killport 
color d3 
cls 
echo 开始封杀135,445端口... 
reg add HKLMSOFTWAREMicrosoftOle /v EnableDCOM /d N /f 
reg add HKLMSOFTWAREMicrosoftRpc /v "DCOM Protocols" /t REG_MULTI_SZ /d ncacn_spxncacn_nb_nbncacn_nb_ipx /f 
@sc config MSDTC start= DISABLED 
reg add HKLMSYSTEMCurrentControlSetServicesNetBTParameters /v SMBDeviceEnabled /t REG_DWORD /d 0 /f 
echo 封杀135,445端口结束,按任意键返回! 
pause >nul 
goto start3 

:openport 
cls 
color d3 
echo 开始恢复135,445端口... 
reg add HKLMSOFTWAREMicrosoftOle /v EnableDCOM /d Y /f 
reg add HKLMSOFTWAREMicrosoftRpc /v "DCOM Protocols" /t REG_MULTI_SZ /d ncacn_spxncacn_nb_nbncacn_nb_ipxncacn_ip_tcp /f 
@sc config MSDTC start= AUTO 
reg add HKLMSYSTEMCurrentControlSetServicesNetBTParameters /v SMBDeviceEnabled /t REG_DWORD /d 1 /f 
echo 恢复135,445端口结束,按任意键返回! 
pause >nul 
goto start3 

:ip 
cls 
color 57 
echo 开始设置IP地址... 
netsh interface ip set address name="本地连接" static 192.168.1.2 255.255.255.0 
echo 设置IP地址结束,按任意键返回! 
pause >nul 
goto begin 

:other 
cls 
color c6 
echo 开始进行其它优化... 
taskkill /im TIMPlatform.exe /f 
del /f /s /q C:Progra~1TencentQQTIMPlatform.exe 
del /f /s /q D:Progra~1TencentQQTIMPlatform.exe 
taskkill /im realsched.exe /f 
del /f /s /q C:Progra~1Common~1RealUpdate_OBrealsched.exe 
@rem 删除运行QQ和Real时启动的多余程序 
reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun /va /f 
reg delete HKCRSoftwareMicrosoftWindowsCurrentVersionRun /va /f 
reg delete "HKLMSOFTWAREMicrosoftShared ToolsMSConfigstartupreg" /f 
del "C:Documents and SettingsAll Users「开始」菜单程序启动*.*" /q /f 
del "C:Documents and SettingsDefault User「开始」菜单程序启动*.*" /q /f 
相关文章 大家在看