如何更换注册表Key的owner


PowerShell交流中心分类: 文件和注册表如何更换注册表Key的owner
0
xiaoyaoyi asked 6 年 ago

owner 默认是system
尝试用set-acl 更改就报错 可以手动在右键安全里更改成自己
Set-Acl : Requested registry access is not allowed.
At line:1 char:8
+ Set-Acl <<<< $reg $regacl
+ CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH…~a:String) [Set-Acl], SecurityExceptio
n
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.SetAclCommand
 

Mooser Lee 管理员 replied 6 年 ago

右键PowerShell图标用管理员权限运行