本帖最后由 lxzzr 于 2011-9-26 18:28 编辑
回复 17# beelin2010
如果系统盘安装后没进行相关的权限设置的,我下面的脚本可以参考:
另外,你也可以找个第三方如:SetACL神马的来修改...
说明:这个脚本在虚拟机(XPSP3)中测试成功,但是,没有设置“桌面”的权限,- @echo off
- set StrPath="c:\"
-
- >>test.inf echo.[Version]
- >>test.inf echo.Signature = "$Chicago$"
- >>test.inf echo.[File Security]
-
- for /f "tokens=3 delims=," %%a in (
- 'type "%windir%\security\templates\setup security.inf" ^| findstr /i "\<c:\\\>"'
- ) do (
- for /f "tokens=1,2* delims=:)" %%i in (%%a) do (
- >>test.inf echo.%StrPath%, 0, "%%i:(D;OICI;DCLC;;;BA)(A;OICI;0x1f01f9;;;BA)%%k"
- )
-
- )
-
- secedit /configure /db test.sdb /cfg test.inf /log test.log
-
- del test.inf test.sdb test.log
- echo.
- pause
复制代码
|