在win7中 使用secedit 该如何恢复文件权限呢
secedit.exe /configure /db secedit.sdb /cfg "c:\windows\security\templates\setup security.inf" /log log.txt /areas filestore
"c:\windows\security\templates\setup security.inf 这个文件在WIN7中不存在
使用自己编写的INF文件
[Version]
signature="$CHICAGO$"
[File Security]
1="c:\windows\system32\cmd.exe", 2, "D:P(A;;GRGX;;;BU)(A;;GRGX;;;PU)(A;;GA;;;BA)(A;;GA;;;SY)"
提示
为 c:\windows\system32\cmd.exe 建立安全描述符的错误。