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 -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 -OutFile C:\Us …
-
+ 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