在使用C#远程注册表时需要提供哪些权限? [英] Which permission needs to give when you are using remote registry with C#?

查看:67
本文介绍了在使用C#远程注册表时需要提供哪些权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从客户端计算机获取用于读写目的的远程计算机注册表键值

我知道可以使用

I am trying to get remote machine registry key value for reading and writing purpose from client machine
I know it can be done using

OpenRemoteBaseKey()

方法,但我不知道使用此方法的安全权限,并且没有权限方法会给出安全例外



我该怎么办?



我尝试了什么:



i使用了

Method, but I don't know the security permissions to use this method and without permission method gives Security Exception

What should i do?

What I have tried:

i have used

OpenRemoteBaseKey()

方法,但我不知道安全权限。

method but i don't know the security permissions.

推荐答案

出于好的理由,管理访问权限与软件是分开的,你可以除非你已经拥有权利,否则不要从代码中更改它 - 在这种情况下,当然不需要...

唯一真正的解决方案是要求系统管理员为您添加适当的访问权限(取决于用户/用户组/计算机)...
For good reasons managing of access right is separated from software, and you can not change it from your code unless you already have the rights - in which case not necessary off course...
The only real solution is to ask the system administrator to add the proper access right for you (depend on user/user group/computer)...


这篇关于在使用C#远程注册表时需要提供哪些权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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