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

系统 1937 0

原文  批处理删除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

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


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论