# Access Denied error while trying to download software on windows cirlcleci environment

**URL:** <https://discuss.circleci.com/t/access-denied-error-while-trying-to-download-software-on-windows-cirlcleci-environment/32809>\
**Category:** Build Environment\
**Tags:** windows\
**Created:** [October 7, 2019, 6:48am UTC](https://discuss.circleci.com/t/access-denied-error-while-trying-to-download-software-on-windows-cirlcleci-environment/32809 "2019-10-07T06:48:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madalasur](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@madalasur](https://discuss.circleci.com/u/madalasur)\
**Post date:** [October 7, 2019, 6:48am UTC](https://discuss.circleci.com/t/access-denied-error-while-trying-to-download-software-on-windows-cirlcleci-environment/32809/1 "2019-10-07T06:48:40Z")

</div>

Dear team,

I am trying to download software using wget command in powershell(windows circleci). getting access denied error.  
#!powershell.exe  
wget [https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi](https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi) -OutFile C:\Users\circleci\project\Scripts\AWSCLI64PY3.msi  
wget : Win32 internal error “Access is denied” 0x5 occurred while reading the console output buffer. Contact Microsoft  
Customer Support Services.  
At line:1 char:1

- wget [https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi](https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi) -OutFile C:\Us …
- 

```auto
  + CategoryInfo : ReadError: (:) [Invoke-WebRequest], HostException
  + FullyQualifiedErrorId : ReadConsoleOutput,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

```

Exited with code 1

Sample code:  
build\_task\_server:  
executor: win/vs2019  
steps:  
- checkout  
- run: Write-Host ‘Hello, Windows’  
- run:  
command: cd /  
shell: powershell.exe  
- run:  
command: mkdir Scripts  
shell: powershell.exe  
- run:  
command: wget uri -OutFile C:\Users\circleci\project\Scripts\AWSCLI64PY3.msi  
shell: powershell.exe

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [October 7, 2019, 3:35pm UTC](https://discuss.circleci.com/t/access-denied-error-while-trying-to-download-software-on-windows-cirlcleci-environment/32809/2 "2019-10-07T15:35:36Z")

</div>

^ It looks like you have two pieces of code/logs here. To make such snippets readable, the forum supports Markdown formatting. Would you edit this now?

The format you need uses backticks, thus:

````
```
logs or code
```

````

This is a common format supported by GitHub, GitLab, Stack Overflow, Bitbucket etc, so it is well worth learning 👍

---

<div class="post-metadata">

**Author:** ![marpe](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marpe](https://discuss.circleci.com/u/marpe)\
**Post date:** [November 12, 2019, 10:23am UTC](https://discuss.circleci.com/t/access-denied-error-while-trying-to-download-software-on-windows-cirlcleci-environment/32809/3 "2019-11-12T10:23:06Z")

</div>

I managed to solve this error by running

```auto
$ProgressPreference = "SilentlyContinue"

```
