六合开奖结果现场直播欢迎诸位!收藏本站注 册登 陆
常用三肖中特马:基础知识网络知识操作系统WPS网页制作数据库算法网页成功之路网络安全最新技术古典mid流行midmid背景下载中心
您现在的位置:首页 > 三肖中特马 > 文章页

批处理删除IIS的everyone、users的访问权限

Admin | 2010-12-23 8:24:56 | ReadNums | 5530 | 标签 网页制作 | 打印本页
     

  以下批处理代码功能,实现的是,删除C盘的everyone、users用户对IIS的权限。

  一、删除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

  二、删除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


问题未解决:在线咨询

网友评论

(访客)
内容实用原创,讲得很好。
20xx年x月x日
(站长)
有问题请在线咨询。
20xx年x月x日