无法修改 Windows IoT 上的注册表

Unable to modify registry on Windows IoT

我尝试通过 Power Shell 在 Windows IoT Core 10 运行ning over Raspberry Pi 3 上修改注册表,但我收到此错误:

[192.168.1.17]: PS C:\Data\Users\administrator\Documents> reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost" /v Ethernet /d 2 /f

reg.exe : ERROR: Access is denied.

  • CategoryInfo: NotSpecified: (ERROR: Access is denied.:String) [], RemoteException
  • FullyQualifiedErrorId : NativeCommandError

我运行管理员命令。

可能是什么问题?

是的,@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 设置:

不幸的是,我找不到在 Windows IoT Core.

上编辑此密钥的方法

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