# BinaryProvider.jl: powershell download blocked by antivirus/anti-malware software

**URL:** <https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634>\
**Category:** General Usage\
**Created:** [January 27, 2018, 10:09am UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634 "2018-01-27T10:09:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoine-soubret](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-soubret/32/3249_2.png) [@antoine-soubret](https://discourse.julialang.org/u/antoine-soubret)\
**Post date:** [January 27, 2018, 10:09am UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/1 "2018-01-27T10:09:34Z")

</div>

Hi,

I am working on a corporate computer with Windows 7 Enterprise and Powershell version 2.0.

When I am trying to install packages such as Sundials.jl or CxxWrap.jl, I get an error when the powershell command invoked by BinaryProvider.jl is trying to download some binary files (see the screenshot below to see the error message).

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/e/0ec7daad54a65b988bc5d43f30eb20d33d925434.png)

I have disabled my Symantec Endpoint Protection or try to set some exceptions for powershell in this antivirus/anti-malware software but none of that was able to solve the problem.

So would you have any suggestions to bypass this security issue or a way to install a package manually like in R where the package can be installed from a zip file with the command install.packages(“filepath.zip”).

Thanks,

Antoine

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [January 27, 2018, 10:11am UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/2 "2018-01-27T10:11:42Z")

</div>

r took many years to work in corporate environments. Hopefully julia will get there sooner. these are the things that need to be focused on

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [January 27, 2018, 10:59am UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/3 "2018-01-27T10:59:41Z")

</div>

I don’t have access to a windows machine ATM, but I would try the following:

- does `run(`powershell`)` work from Julia?
- if not, can you run it from the command line?

In my (thankfully limited) Windows experience, `EPERM` can come from a lot of things.

---

<div class="post-metadata">

**Author:** ![helgee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgee/32/2022_2.png) [@helgee](https://discourse.julialang.org/u/helgee)\
**Post date:** [January 27, 2018, 11:22am UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/4 "2018-01-27T11:22:32Z")

</div>

Powershell can be disabled domain-wide via a group policy setting. If I remember correctly, this is the case for my workplace. I will try on Monday whether I can reproduce the problem.

---

<div class="post-metadata">

**Author:** ![antoine-soubret](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-soubret/32/3249_2.png) [@antoine-soubret](https://discourse.julialang.org/u/antoine-soubret)\
**Post date:** [January 27, 2018, 12:41pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/5 "2018-01-27T12:41:47Z")

</div>

`run("powershell")` works from Julia.  
It’s the specific powershell command used to download a .tar.gz file which is blocked by my antivirus software when run either in Julia or in the Windows command prompt:

> powershell -NoProfile -Command ‘[System.Net.ServicePointManager]::SecurityProtocol =[System.Net.SecurityProtocolType]::Tls12; $webclient = (New-Object System.Net.Webclient); $webclient.DownloadFile(“[https://github.com/JuliaDiffEq/SundialsBuilder/releases/download/dummy-0.0.3/Sundials.x86\_64-w64-mingw32.tar.gz](https://github.com/JuliaDiffEq/SundialsBuilder/releases/download/dummy-0.0.3/Sundials.x86_64-w64-mingw32.tar.gz)”, “C:\Portable\APPS\Julia\JuliaPackages\v0.6\Sundials\deps\usr\downloads\Sundials.x86\_64-w64-mingw32.tar.gz”)’

So, it’s not an Julia issue per se. But I would like to find a solution to circumvent the problem by either replacing the powershell command in the BinaryProvider.jl package or by installing the package manually from a zip file.

---

<div class="post-metadata">

**Author:** ![antoine-soubret](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-soubret/32/3249_2.png) [@antoine-soubret](https://discourse.julialang.org/u/antoine-soubret)\
**Post date:** [January 27, 2018, 12:55pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/6 "2018-01-27T12:55:45Z")

</div>

Thanks for checking. Unfortunately, I am working in a large company so I won’t be able to get our IT department to change a group policy setting for Julia especially when I see that Symantec has a full document on the use of powershell to attack systems ([Powershell Symantec](https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwirmo2nl_jYAhWC26QKHTY1DLoQFggpMAA&url=https%3A%2F%2Fwww.symantec.com%2Fcontent%2Fdam%2Fsymantec%2Fdocs%2Fsecurity-center%2Fwhite-papers%2Fincreased-use-of-powershell-in-attacks-16-en.pdf&usg=AOvVaw2CQa38ZOHkVVrxW0mL9O-Y)).

---

<div class="post-metadata">

**Author:** ![helgee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgee/32/2022_2.png) [@helgee](https://discourse.julialang.org/u/helgee)\
**Post date:** [January 27, 2018, 1:06pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/7 "2018-01-27T13:06:35Z")

</div>

> [@antoine-soubret](#):
>
> Thanks for checking. Unfortunately, I am working in a large company so I won’t be able to get our IT department to change a group policy setting for Julia especially when I see that Symantec has a full document on the use of powershell to attack systems (Powershell Symantec).

I neither have hope for my employer in that regard. But that would mean that there needs to be a workaround to make BinaryProvider and also Base Julia work in locked-down environments.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [January 27, 2018, 1:20pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/8 "2018-01-27T13:20:54Z")

</div>

> [@helgee](#):
>
> needs to be a workaround to make BinaryProvider and also Base Julia work in locked-down environments

Perhaps someone with a stake in this should open an issue at

> **[GitHub - JuliaPackaging/BinaryProvider.jl: A reliable binary provider for Julia](https://github.com/JuliaPackaging/BinaryProvider.jl/)**
>
> A reliable binary provider for Julia. Contribute to JuliaPackaging/BinaryProvider.jl development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![helgee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgee/32/2022_2.png) [@helgee](https://discourse.julialang.org/u/helgee)\
**Post date:** [January 27, 2018, 1:22pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634/9 "2018-01-27T13:22:23Z")

</div>

Want to do some testing first 🙂
