专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 应用服务器

使用bat文件来设置win2003服务器后续有关问题

发布时间:2010-06-14 17:08:56 文章来源:www.iduyao.cn 采编人员:星星草
使用bat文件来设置win2003服务器后续问题
为每个网站配置单独的用户并全部放入guests组,bat文件内容如下:

@echo   off
echo   欢迎使用RoseKnife服务器安全设置向导!
echo   -------------------------------------------
ehco   开始卸载操作
regsvr32   WSHom.ocx   /u
del   %windir%\system32\wshom.ocx
regsvr32   shell32.dll   /u
del   %windir%\system32\shell32.dll
ehco   开始处理文件
cacls   %windir%\system32\Cmd.exe   /e   /d   guests
cacls   %windir%\system32\Net.exe   /e   /d   guests
cacls   %windir%\system32\Net1.exe   /e   /d   guests
cacls   %windir%\system32\tftp.exe   /e   /d   guests
cacls   %windir%\system32\netstat.exe   /e   /d   guests
cacls   %windir%\regedit.exe   /e   /d   guests
cacls   %windir%\system32\at.exe   /e   /d   guests
cacls   %windir%\system32\attrib.exe   /e   /d   guests
cacls   %windir%\system32\cacls.exe   /e   /d   guests
cacls   %windir%\system32\format.com   /e   /d   guests
cacls   %windir%\system32\*.log   /e   /d   guests
cacls   %windir%\*.log   /e   /d   guests
echo   -------------------------------------------
echo   更新完毕,请按任意键退出!
pause   > nul
exit

现有一个问题,想在bat文件里停止一些服务并禁止自启动,语句怎么写?


------解决方案--------------------
停止服务我知道,net stop 服务名
禁止自启动就不清楚了
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: