registry - 此提供程序未实现 IDynamicPropertyCmdletProvider 接口(interface)

标签 registry

我正在尝试添加注册表项,但出现以下错误:
New-ItemProperty:无法使用接口(interface)。此提供程序未实现 IDynamicPropertyCmdletProvider 接口(interface)

Disable IE first pop up

$registryPath = "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main"

$Name = "DisableFirstRunCustomize"

$value = "00000001"

New-Item -Path $registryPath -Force | Out-Null

New-ItemProperty -Path $registryPath -Name $name -Value $value ` -PropertyType DWORD

最佳答案

您的 $registryPath是不正确的。正确的语法是:

$registryPath = "HKCU:\Software\Policies\Microsoft\Internet Explorer\Main"

Update or Add Registry Key Value with PowerShell

关于registry - 此提供程序未实现 IDynamicPropertyCmdletProvider 接口(interface),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52370519/

相关文章:

registry - 在 VSIX 安装期间/之后运行脚本?

visual-studio-2008 - .rgs文件中的注释的语法是什么

windows - 如何在 Windows 上下文菜单中为具有特定扩展名的文件添加条目?

python-3.x - 为什么注册表值在 Windows 上的 Python 3 中的 winreg 中不匹配?

c# - 为什么注册表写在与预期不同的位置?

windows - 在 Windows 注册表中注册应用程序

类似 SQL 的 Windows 注册表包装器?

windows - 如何更改windows系统默认的最大化窗口大小?

c++ - 无法保存注册表项 RESOURCEMAP

c++ - 是否有必要在 Windows 注册表中转义字符串中的斜杠?