WIN2003 服务器安全配置批处理文件
作者 佚名
来源 批处理
浏览
发布时间 2013-07-09
保存为bat文件,执行! 复制代码 代码如下: @echo off echo "虚拟主机C盘权限设定" echo "Author:enlin" echo "删除C盘的everyone的权限" cd/ cacls "%SystemDrive%" /r "everyone" /e cacls "%SystemRoot%" /r "everyone" /e cacls "%SystemRoot%/Registration" /r "everyone" /e cacls "%SystemDrive%/Documents and Settings" /r "everyone" /e echo "删除C盘的所有的users的访问权限" cd/ cacls "%SystemDrive%" /r "users" /e cacls "%SystemDrive%/Program Files" /r "users" /e cacls "%SystemDrive%/Documents and Settings" /r "users" /e cacls "%SystemRoot%" /r "users" /e cacls "%SystemRoot%/addins" /r "users" /e cacls "%SystemRoot%/AppPatch" /r "users" /e cacls "%SystemRoot%/Connection Wizard" /r "users" /e cacls "%SystemRoot%/Debug" /r "users" /e cacls "%SystemRoot%/Driver Cache" /r "users" /e cacls "%SystemRoot%/Help" /r "users" /e cacls "%SystemRoot%/IIS Temporary Compressed Files" /r "users" /e cacls "%SystemRoot%/java" /r "users" /e cacls "%SystemRoot%/msagent" /r "users" /e cacls "%SystemRoot%/mui" /r "users" /e cacls "%SystemRoot%/repair" /r "users" /e cacls "%SystemRoot%/Resources" /r "users" /e cacls "%SystemRoot%/security" /r "users" /e cacls "%SystemRoot%/system" /r "users" /e cacls "%SystemRoot%/TAPI" /r "users" /e cacls "%SystemRoot%/Temp" /r "users" /e cacls "%SystemRoot%/twain_32" /r "users" /e cacls "%SystemRoot%/Web" /r "users" /e cacls "%SystemRoot%/WinSxS" /r "users" /e cacls "%SystemRoot%/system32/3com_dmi" /r "users" /e cacls "%SystemRoot%/system32/administration" /r "users" /e cacls "%SystemRoot%/system32/Cache" /r "users" /e cacls "%SystemRoot%/system32/CatRoot2" /r "users" /e cacls "%SystemRoot%/system32/Com" /r "users" /e cacls "%SystemRoot%/system32/config" /r "users" /e cacls "%SystemRoot%/system32/dhcp" /r "users" /e cacls "%SystemRoot%/system32/drivers" /r "users" /e cacls "%SystemRoot%/system32/export" /r "users" /e cacls "%SystemRoot%/system32/icsxml" /r "users" /e cacls "%SystemRoot%/system32/lls" /r "users" /e cacls "%SystemRoot%/system32/LogFiles" /r "users" /e cacls "%SystemRoot%/system32/MicrosoftPassport" /r "users" /e cacls "%SystemRoot%/system32/mui" /r "users" /e cacls "%SystemRoot%/system32/oobe" /r "users" /e cacls "%SystemRoot%/system32/ShellExt" /r "users" /e cacls "%SystemRoot%/system32/wbem" /r "users" /e echo "添加iis_wpg的访问权限" cacls "%SystemRoot%" /g iis_wpg:r /e cacls "%SystemDrive%/Program Files/Common Files" /g iis_wpg:r /e cacls "%SystemRoot%/Downloaded Program Files" /g iis_wpg:c /e cacls "%SystemRoot%/Help" /g iis_wpg:c /e cacls "%SystemRoot%/IIS Temporary Compressed Files" /g iis_wpg:c /e cacls "%SystemRoot%/Offline Web Pages" /g iis_wpg:c /e cacls "%SystemRoot%/System32" /g iis_wpg:c /e cacls "%SystemRoot%/Tasks" /g iis_wpg:c /e cacls "%SystemRoot%/Temp" /g iis_wpg:c /e cacls "%SystemRoot%/Web" /g iis_wpg:c /e echo "添加iis_wpg的访问权限[.net专用]" cacls "%SystemRoot%/Assembly" /g iis_wpg:c /e cacls "%SystemRoot%/Microsoft.NET" /g iis_wpg:c /e echo "添加iis_wpg的访问权限[装了MACFEE的软件专用]" cacls "%SystemDrive%/Program Files/Network Associates" /g iis_wpg:r /e echo "添加users的访问权限" cacls "%SystemRoot%/temp" /g users:c /e |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于WIN2003 服务器安全配置批处理文件的所有评论