【发布时间】: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
我已经完成了以下线程,但似乎没有任何效果:
- Add-MpPreference is not recognized as a name
- Powershell Set-MpPreference -DisableRealtimeMonitoring $true not working
我在 Windows 7 上使用 Powershell v5.1。
可能是什么原因?
【问题讨论】:
-
如果你运行 32 位版本的 Powershell,请尝试使用 64 位版本。
标签: powershell