Powershell wget download file - consider
Powershell wget download file - useful message
Confirm: Powershell wget download file
Powershell wget download file | 438 |
Powershell wget download file | 827 |
Powershell wget download file | 987 |
Powershell wget download file | 934 |
Powershell equivalent of Linux wget
Hi
I am new to Powershell, more familiar with Linux (just!) but due to hardware restrictions having to do some fetching of remote documents using a Windows pc. I know the Linux command I need to use and have been trying to work out the Powershell equivalent, without much success, not surprising really!
My Linux command is
wget --user=$user --password=$password http://<webaddress>//<filename>
so I have a simple wget command and somewhere to put my login credentials. I have tried using wget for Windows but again due to restrictions I can't put it on my laptop. Can anyone help with something for Powershell which is straightforward? Thanks!
2 Replies
Hi there,
This should work
(Obviously replace url with the url you need and the output path etc) this will prompt you for a password to authenticate
Heres a link with a great explanation and example.
www.cronistalascolonias.com.ar#authenticati
Welcome! The equivalent PS cmdlet is Invoke-WebRequest, you can actually use wget as an alias for Invoke-WebRequest:
As for the credentials, have you tried like this:
This topic has been locked by an administrator and is no longer open for commenting.
To continue this discussion, please ask a new question.
-
-
-