【问题标题】:The IDynamicPropertyCmdletProvider interface is not implemented by this provider此提供程序未实现 IDynamicPropertyCmdletProvider 接口
【发布时间】:2019-02-21 13:00:55
【问题描述】:

我正在尝试添加注册表项,但出现以下错误:

New-ItemProperty:无法使用界面。此提供程序未实现 IDynamicPropertyCmdletProvider 接口

禁用IE先弹出

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

$Name = "DisableFirstRunCustomize"

$value = "00000001"

New-Item -Path $registryPath -Force |外空

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

【问题讨论】:

    标签: registry


    【解决方案1】:

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

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

    见Update or Add Registry Key Value with PowerShell

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-04
      • 1970-01-01
      • 1970-01-01
      • 2018-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多