China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 21:52
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Using the setacl (version 2.0) command to modify registry permissions View 751 Replies 1
Original Poster Posted 2007-04-11 04:30 ·  中国 广东 肇庆 四会市 电信
新手上路
Credits 14
Posts 9
Joined 2007-03-11 02:45
19-year member
UID 81357
Gender Male
Status Offline
After setacl -on "HKEY_CURRENT_USER\1" -ot reg -actn ace -ace "n:administrators;p:full;m:deny", the registry key value can no longer be changed back with the reverse command. 0.87 could do it! Anyone who knows 2.0, please help,
Floor 2 Posted 2007-06-05 02:23 ·  中国 湖南 长沙 电信
初级用户
Credits 22
Posts 11
Joined 2007-03-30 02:44
19-year member
UID 83340
Gender Male
Status Offline
You should be able to do it by clearing all permission settings first. The command is as follows:
SetACL.exe -on CURRENT_USER\1 -ot file -actn ace -ace "n:administrators;p:full;i:sc,so;m:grant;w:dacl" -actn setprot -op dacl:p_nc -actn clear -clr dacl
Forum Jump: