Reputation: 470
On running Set-MpPreference -DisableScriptScanning 1
, I'm getting:
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
I've gone through the following threads, but nothing seems to work:
I'm using Powershell v5.1 on Windows 7.
What could the reason be?
Upvotes: 1
Views: 5687
Reputation: 11
Use 64bit Powershell:
C:\windows\sysnative\WindowsPowershell\v1.0\powershell.exe
Upvotes: 1
Reputation: 17124
Have you tried
Import-Module Defender
I am not sure if the module exists on Windows 7 yet tough...
Upvotes: 2