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

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

以下批处理代码功能,实现的是,删除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

上一篇:HPE计划将软件部门出售给Thoma Bravo 价格近100亿美元


下一篇:HTML5网页如何调用浏览器APP的微信分享功能?