一、手动修改方法
(1)修改所有者:
先在注册表键上,右键【权限】,然后修改所有者,将everyone变为所有者,保存。
(2)修改权限:
将所有者权限更改为【完全控制】,然后再讲everyone更改为【完全控制】
二、批处理修改方法
@echo off
color 0c
rem 设置"HKEY_LOCAL_MACHINE\Win10\ControlSet001\Enum"的所有者为:Administratros
>>test.inf echo.[Version]
>>test.inf echo.Signature = "$Chicago$"
>>test.inf echo.
>>test.inf echo.[Registry Keys]
>>test.inf echo."MACHINE\SYSTEM\ControlSet001\Enum", 0, "D:P(A;CI;GRGWSDGA;;;BA)(A;CI;GRGWSDGA;;;SY)"
secedit /configure /db test.sdb /cfg test.inf /log test.log
del test.*
exit