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-02 12:54
中国DOS联盟论坛 » WinPE、PowerShell及其它命令行系统专区 » [Help] How to modify registry permissions using commands View 14,295 Replies 35
Original Poster Posted 2006-05-04 20:00 ·  中国 四川 成都 电信
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
How to modify the permissions of a certain key value in the registry using commands? The cacls is used to modify files, but how about the registry?
I mainly want to apply it in batch processing

[ Last edited by tigerpower on 2006-5-7 at 09:16 ]
Floor 2 Posted 2006-05-09 17:58 ·  IANA 局域网IP(Private-Use)
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
After flipping through the Help and Support Center and MSDN for a long time, it seems that only WMI can be used.
Floor 3 Posted 2006-05-09 21:08 ·  中国 上海 长宁区 电信
中级用户
★★
大师兄
Credits 377
Posts 99
Joined 2005-08-26 07:37
20-year member
UID 41945
Status Offline
The file objects and registry key objects in PowerShell both have a "SetAccessControl" method. However, I'm not very familiar with.NET, and it's not mentioned in the user manual, so I'm not too clear about the specific usage. You can take a look if you're interested.
Floor 4 Posted 2006-07-13 08:29 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
I also don't know whether what you said includes using third-party tools. I searched, and it seems there isn't a single command without using tools. If using tools, it's okay. Use setacl. It's quite simple. Just look at its help.

(ps: Baidu is a good thing. We should make good use of it.)
Attachments
setacl.rar (4.82 KiB, Credits to download 1 pts, Downloads: 221)
Floor 5 Posted 2006-07-13 15:55 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Try not to use third-party ones~~ Hehe, why not echo a VBS file and then cscript it, hehe

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-12-26 07:10 ·  中国 福建 三明 电信
新手上路
Credits 18
Posts 7
Joined 2006-12-20 00:26
19-year member
UID 73981
Gender Male
Status Offline
Heh
Floor 7 Posted 2007-02-17 07:54 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Floor 8 Posted 2007-04-01 03:59 ·  中国 福建 南平 顺昌县 电信
新手上路
Credits 3
Posts 2
Joined 2007-04-01 03:30
19-year member
UID 83566
Gender Male
Status Offline
I don't know how to use it, so I can only grope.
Floor 9 Posted 2007-04-04 02:28 ·  中国 湖南 长沙 联通
贫困用户
Credits -2
Posts 20
Joined 2007-01-30 23:49
19-year member
UID 78145
Gender Male
Status Offline
Floor 10 Posted 2007-04-04 23:25 ·  中国 上海 联通
新手上路
Credits 6
Posts 2
Joined 2007-01-16 10:11
19-year member
UID 76684
Gender Male
Status Offline
I don't know, same as the classmate study
Floor 11 Posted 2007-04-23 11:33 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
Why not use third-party tools? As long as they work well, why not? Besides, is a support tool considered a third-party tool? If it is, this version is a support tool, and the next version will be built-in. Maybe this statement is a bit far-fetched, but don't be too absolute about the concept of third-party tools.
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 12 Posted 2007-05-03 15:52 ·  中国 湖北 武汉 电信
初级用户
Credits 28
Posts 12
Joined 2007-05-03 14:50
19-year member
UID 87368
Gender Male
Status Offline
Regini is not in the computer, is it an external command?
Floor 13 Posted 2007-05-17 14:15 ·  中国 广东 深圳 盈联宽带
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
平生进退如飙风
Floor 14 Posted 2007-05-26 20:17 ·  中国 浙江 金华 电信
新手上路
Credits 2
Posts 1
Joined 2006-03-17 11:14
20-year member
UID 52250
Gender Male
Status Offline
Regini is not in the computer, is it an external command?
Floor 15 Posted 2007-06-01 09:49 ·  中国 浙江 杭州 电信
新手上路
Credits 8
Posts 3
Joined 2007-04-17 22:34
19-year member
UID 85526
Gender Male
Status Offline
How should WMI be done?
Forum Jump: