win2003文件夹权限设置脚本代码
程序员文章站
2022-11-19 23:16:31
[/code] @echo off color 0a title windows 2003文件夹权限设置 by ╰☆孤影☆╮ echo. echo. echo. cacls...
[/code]
@echo off
color 0a
title windows 2003文件夹权限设置 by ╰☆孤影☆╮
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]
@echo off
color 0a
title windows 2003文件夹权限设置 by ╰☆孤影☆╮
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]