Created
April 10, 2018 14:27
-
-
Save msoranno/a27c5c6cc9c3afd9ce475907f558a05e to your computer and use it in GitHub Desktop.
wget powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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