anarquiles

WGet Windows Equivalent

Oct 14th, 2021
744
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #declare new object
  2. $Client = new-object System.Net.WebClient
  3. #Change Source URL > Destination Path, add many lines as you need
  4. $client.DownloadFile("http://url.net/sourcefile.tar","F:\bkp\newfilename.tar")
  5.  
  6.  
  7. #if you need to authenticate add
  8. $client.Credentials =  Get-Credential
RAW Paste Data