无法修改Windows IoT上的注册表

时间:2019-02-11 16:11:39

标签: powershell registry raspberry-pi3 windows-iot-core-10

我尝试通过Power Shell修改在Raspberry Pi 3上运行的Windows IoT核心版10上的注册表,但出现此错误:

  

[192.168.1.17]:PS C:\ Data \ Users \ administrator \ Documents> reg.exe添加“ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ NetworkList \ DefaultMediaCost” / v以太网/ d 2 / f < / p>      

reg.exe:错误:访问被拒绝。

     
      
  • CategoryInfo:未指定:(错误:访问被拒绝。:String)[],RemoteException
  •   
  • FullyQualifiedErrorId:NativeCommandError
  •   

我与管理员一起运行命令。

可能是什么问题?

1 个答案:

答案 0 :(得分:1)

是的,@ Mudit Bahedia指出您没有足够的权限来编写此DefaultMediaCost密钥。因此,在台式机上也会出现该错误。

但是在桌面上,您可以更改值。您将需要use RMB/Permissions/Advanced to change its owner to Administrators or your own username and then give said user Full Control.或使用以下UI设置:

enter image description here

很遗憾,我找不到在 Windows IoT核心版上编辑此密钥的方法。

您可以提交有关此功能的反馈。