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
右键PowerShell图标用管理员权限运行