ESP-IDF-beta1 Windows Defender Exclusions

lhuxley
Posts: 5
Joined: Mon Oct 07, 2019 9:35 pm

ESP-IDF-beta1 Windows Defender Exclusions

Postby lhuxley » 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

ESP_Martin
Posts: 1
Joined: Fri Oct 11, 2019 6:02 am

Re: ESP-IDF-beta1 Windows Defender Exclusions

Postby ESP_Martin » Fri Oct 11, 2019 6:11 am

hi lhuxhley,
it seems we need to improve our PS error handling, sorry for inconvenience. However, it's a bit surprising the installer hangs on this since the PS process should exit at any rate. I'm taking a look shortly and will be back to you ASAP
Thank you for your report

Regards,
Martin

Who is online

Users browsing this forum: Bing [Bot], chrismerck, ESP_Alvin, MSN [Bot] and 26 guests