Dzwebs.Net

撰写电脑技术杂文十余年

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

Admin | 2010-12-23 8:24:56 | 被阅次数 | 6772

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

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


网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231