需要c#代码来由非管理员用户在HKEY_CURRENT_MACHINE注册表中设置值. [英] Need the c# code to set the value inside the HKEY_CURRENT_MACHINE registry by non admin users.

查看:275
本文介绍了需要c#代码来由非管理员用户在HKEY_CURRENT_MACHINE注册表中设置值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非管理员用户是否可以更改"HKEY_CURRENT_MACHINE"注册表下的值.如果是的话,请提供用C#代码实现的方法.

Is it possible to change the value under the HKEY_CURRENT_MACHINE registry by non admin users. If yes then, please provide the way to do it in C# code.

注意:我可以以管理员身份更改该值.

Note: I can able to change the value as a admin.

谢谢

K.阿里瓦扎甘(Arivazhagan)

K. Arivazhagan

推荐答案

您好,Airvazhagan,

Hi Airvazhagan,

谢谢您在这里发布.

对于您的问题,系统安全.注册表的某些操作可能未经许可.

您可以改进  

1.请检查属性节点是否具有.manifest文件.如果没有,您可以双击属性",然后按照该步骤操作 显示创建它.

1. Please check if the properties node has .manifest file. If not you could double click the Properties and follow the steps that image shows to create it.

2.You可以选择以下三种级别的权限来运行项目. "asInvoker"  

3.不要忘记重建项目.

如果您要要更改注册表权限,请参考图像显示的步骤.可以在注册表中设置值 由非管理员用户.

If you want to change the registry permissions , please take references with the steps that image shows . It can set the value in registry by non admin users.

我希望这会有所帮助.

最好的问候,

温迪


这篇关于需要c#代码来由非管理员用户在HKEY_CURRENT_MACHINE注册表中设置值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆