欢迎来到代码驿站!

DOS/BAT

当前位置:首页 > 脚本语言 > DOS/BAT

win2003文件夹权限设置脚本代码

时间:2021-06-25 09:28:32|栏目:DOS/BAT|点击:
[/code]
@echo off
color 0a
title windows 2003文件夹权限设置 by ?t☆孤影☆?r
echo.
echo.
echo.
cacls "C:\Windows" /r everyone /e
cacls "C:\Documents and Settings" /r everyone /e
cacls "C:\Documents and Settings\All Users" /r everyone /e
cacls "C:\Documents and Settings\All Users\Documents" /r everyone /e
cacls "C:\Inetpub\wwwroot\aspnet_client" /r everyone /e
cacls "C:\Documents and Settings\All Users\Application Data\Microsoft" /r everyone /e
cacls "C:\Documents and Settings\All Users\Application Data\Microsoft\HTML Help" /r

everyone /e
cacls "C:\Windows" /r "CREATOR OWNER" /e
cacls "C:\Windows\repair" /r "CREATOR OWNER" /e
cacls "C:\Windows\system32" /r "CREATOR OWNER" /e
cacls "C:\Windows\system32\wbem" /r "CREATOR OWNER" /e
cacls "C:\Windows\system32\config" /r "CREATOR OWNER" /e
cacls "C:\Program Files" /r "CREATOR OWNER" /e
cacls "C:\Program Files\WindowsUpdate" /r "CREATOR OWNER" /e
cacls "C:\Documents and Settings\All Users\Documents" /r "CREATOR OWNER" /e
cacls "C:\Documents and Settings\All Users\Application Data" /r "CREATOR OWNER" /e
cacls "C:\Windows" /r "Power Users" /e
cacls "C:\Windows\repair" /r "Power Users" /e
cacls "C:\Windows\system32" /r "Power Users" /e
cacls "C:\Windows\system32\wbem" /r "Power Users" /e
cacls "C:\Windows\system32\config" /r "Power Users" /e
cacls "C:\Program Files" /r "Power Users" /e
cacls "C:\Documents and Settings" /r "Power Users" /e
cacls "C:\Program Files\WindowsUpdate" /r "Power Users" /e
cacls "C:\Documents and Settings\All Users" /r "Power Users" /e
cacls "C:\Documents and Settings\All Users\Documents" /r "Power Users" /e
cacls "C:\Documents and Settings\All Users\Application Data" /r "Power Users" /e
cacls "C:\Documents and Settings\All Users\Application Data\Microsoft" /r "Power Users" /e
cacls "C:\Documents and Settings\All Users\Application Data\Microsoft\HTML Help" /r "Power

Users" /e
cacls "C:\Program Files" /r "TERMINAL SERVER USER" /e
cacls "C:\Documents and Settings\All Users" /r users /e
cacls "C:\Documents and Settings\All Users\Documents" /r users /e
cacls "C:\Documents and Settings\All Users\Application Data" /r users /e
cacls "C:\Documents and Settings" /r users /e
cacls "C:\Windows" /r users /e
cacls "C:\Windows\addins" /r users /e
cacls "C:\Windows\AppPatch" /r users /e
cacls "C:\Windows\Connection Wizard" /r users /e
cacls "C:\Windows\Debug" /r users /e
cacls "C:\Windows\Driver Cache" /r users /e
cacls "C:\Windows\Help" /r users /e
cacls "C:\Windows\IIS Temporary Compressed Files" /r users /e
cacls "C:\Windows\java" /r users /e
cacls "C:\Windows\msagent" /r users /e
cacls "C:\Windows\mui" /r users /e
cacls "C:\Windows\repair" /r users /e
cacls "C:\Windows\Resources" /r users /e
cacls "C:\Windows\security" /r users /e
cacls "C:\Windows\system" /r users /e
cacls "C:\Windows\TAPI" /r users /e
cacls "C:\Windows\twain_32" /r users /e
cacls "C:\Windows\Web" /r users /e
cacls "C:\Windows\system32\3com_dmi" /r users /e
cacls "C:\Windows\system32\administration" /r users /e
cacls "C:\Windows\system32\Cache" /r users /e
cacls "C:\Windows\system32\CatRoot2" /r users /e
cacls "C:\Windows\system32\Com" /r users /e
cacls "C:\Windows\system32\config" /r users /e
cacls "C:\Windows\system32\dhcp" /r users /e
cacls "C:\Windows\system32\drivers" /r users /e
cacls "C:\Windows\system32\export" /r users /e
cacls "C:\Windows\system32\icsxml" /r users /e
cacls "C:\Windows\system32\lls" /r users /e
cacls "C:\Windows\system32\LogFiles" /r users /e
cacls "C:\Windows\system32\MicrosoftPassport" /r users /e
cacls "C:\Windows\system32\mui" /r users /e
cacls "C:\Windows\system32\oobe" /r users /e
cacls "C:\Windows\system32\ShellExt" /r users /e
pause
[code]

上一篇:利用certutil.exe实现在批处理(bat)中嵌入exe文件的方法

栏    目:DOS/BAT

下一篇:批处理操作注册表完全攻略(读取注册表/写入注册表等)

本文标题:win2003文件夹权限设置脚本代码

本文地址:http://www.codeinn.net/misctech/147947.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有