【问题标题】:Powershell `Set-MpPreference` not recognizedPowershell `Set-MpPreference` 无法识别
【发布时间】:2020-08-19 19:48:36
【问题描述】:

在运行Set-MpPreference -DisableScriptScanning 1 时,我得到:

The term 'Set-MpPreference' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Set-MpPreference -DisableScriptScanning 1
~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-MpPreference:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我已经完成了以下线程,但似乎没有任何效果:

我在 Windows 7 上使用 Powershell v5.1。
可能是什么原因?

【问题讨论】:

  • 如果你运行 32 位版本的 Powershell,请尝试使用 64 位版本。

标签: powershell


【解决方案1】:

你试过了吗

Import-Module Defender

我不确定该模块是否存在于 Windows 7 上但很难...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-08
    • 2014-01-08
    • 2012-09-13
    • 2020-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多