Skip to content

Instantly share code, notes, and snippets.

@msoranno
Created April 10, 2018 14:27
Show Gist options
  • Save msoranno/a27c5c6cc9c3afd9ce475907f558a05e to your computer and use it in GitHub Desktop.
Save msoranno/a27c5c6cc9c3afd9ce475907f558a05e to your computer and use it in GitHub Desktop.
wget powershell
$uri = 'https://uri.com/file.txt'
$user = 'user'
$pass = 'pass' | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object Management.Automation.PSCredential ($user, $pass)
Invoke-WebRequest -Uri $uri -Credential $cred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment