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

father_gorry
Posts: 3
Joined: Fri Feb 28, 2020 7:04 am

Re: ESP-IDF-beta1 Windows Defender Exclusions

Postby father_gorry » Wed Mar 11, 2020 11:33 am

Hi, the error still persist.

Code: Select all

2020-03-11 14:24:44.326   --------
2020-03-11 14:24:44.326   Running command: powershell -ExecutionPolicy ByPass -File "C:\Users\Miron\.espressif\dist\tools_WD_excl.ps1" -AddExclPath "C:\Users\Miron\.espressif\*.exe"
                          Import-Module : “Є § ­­л© ¬®¤г«м "Defender" ­Ґ Ўл« § Ја㦥­, в Є Є Є ­Ё ў ®¤­®¬ Ё§ Є в «®Ј®ў ¬®¤г«Ґ© ­Ґ Ўл« ®Ў­ а㦥­ ¤
                          Ґ©б⢨⥫м­л© д ©« ¬®¤г«п.
                          C:\Users\Miron\.espressif\dist\tools_WD_excl.ps1:91 §­ Є:3
                          +   Import-Module Defender
                          +   ~~~~~~~~~~~~~~~~~~~~~~
                              + CategoryInfo          : ResourceUnavailable: (Defender:String) [Import-Module], FileNotFoundException
                              + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
                           
                          Updating Windows Defender real-time scan exclusions:
                           adding C:\Users\Miron\.espressif\dist\Git-2.21.0-64-bit.exe
                          C:\Users\Miron\.espressif\dist\tools_WD_excl.ps1 : €¬п "Add-MpPreference" ­Ґ а бЇ®§­ ­® Є Є Ё¬п Є®¬ ­¤«Ґв , дг­ЄжЁЁ, д 
                          ©«  б業 аЁп Ё«Ё ўлЇ®«­пҐ¬®© Їа®Ја ¬¬л. Џа®ўҐам⥠Їа ўЁ«м­®бвм ­ ЇЁб ­Ёп Ё¬Ґ­Ё,   в Є¦Ґ ­ «ЁзЁҐ Ё Їа ўЁ«м­®бвм ЇгвЁ, Ї®
                          б«Ґ 祣® Ї®ўв®аЁвҐ Ї®ЇлвЄг.
                              + CategoryInfo          : NotSpecified: (:) [Write-Error], CommandNotFoundException
                              + FullyQualifiedErrorId : System.Management.Automation.CommandNotFoundException,tools_WD_excl.ps1
                           

Who is online

Users browsing this forum: Baidu [Spider], djixon, irfan93 and 130 guests