开发者

Does writing to the HKCU registry key in Vista/Win7 require adminstrator priviliges?

开发者 https://www.devze.com 2023-01-21 23:08 出处:网络
I have 开发者_如何转开发a program which writes to the HKCU registry key during startup.Does this require administrator privileges in Vista and Win7?By default the answer is no, it doesn\'t require adm

I have 开发者_如何转开发a program which writes to the HKCU registry key during startup. Does this require administrator privileges in Vista and Win7?


By default the answer is no, it doesn't require admin privs. But it is possible to change the permissions on any key, so it's not a guarantee it will work. But by default, assuming no one else is screwing around in the registry where you want to write, it should be ok.


While OmnipotentEntity's answer is mostly correct, there are (at least) two keys in HKCU that a normal user cannot write to in the default system configuration:

  • HKCU\Software\Policies
  • HKCU\Software\Microsoft\Windows\CurrentVersion\Policies
0

精彩评论

暂无评论...
验证码 换一张
取 消