ESP-IDF-beta1 Windows Defender Exclusions
Posted: Mon Oct 07, 2019 10:10 pm
I'm trying to install the beta on Windows 8.1. I ran esp-idf-tools-setup-2.1.exe with the windows defender exclusions selected. The installer hangs when it attempts to register the exclusions. (I then ran the installer without the exclusions selected, but with the option to create a shortcut on the desktop selected. The installation completed, but I cannot find any new shortcut on the desktop.) The pertinent error message from the log is here:
Code: Select all
2019-10-07 15:23:12.132 Registering IDF Tools executables in Windows Defender: powershell -
ExecutionPolicy ByPass -File "C:\Users\Huxley\.espressif\dist\tools_WD_excl.ps1" -AddExclPath "C:
\Users\Huxley\.espressif\*.exe"
2019-10-07 15:27:14.066 Done, exit code=-1
2019-10-07 15:27:14.066 --------
2019-10-07 15:27:14.066 Running command: powershell -ExecutionPolicy ByPass -File "C:\Users
\Huxley\.espressif\dist\tools_WD_excl.ps1" -AddExclPath "C:\Users\Huxley\.espressif\*.exe"
Import-Module : The specified module 'Defender' was not loaded because
no valid module file was found in any module directory.
At C:\Users\Huxley\.espressif\dist\tools_WD_excl.ps1:61 char:1
+ Import-Module Defender
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (Defender:String)
[Import-Module], FileNotFoundException
+ FullyQualifiedErrorId :
Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
C:\Users\Huxley\.espressif\dist\tools_WD_excl.ps1 : Method invocation
failed because [System.NotSupportedException] does not
contain a method named 'new'.
+ CategoryInfo : NotSpecified: (:) [Write-Error],
RuntimeException
+ FullyQualifiedErrorId :
System.Management.Automation.RuntimeException,tools_WD_excl.ps1