Download files with Powershell and Invoke-WebRequest

While there are quite a few ways to download files with powershell, my usual go to if I’m limited to strictly powershell is Invoke-WebRequest. Here’s an example: 1 Invoke-WebRequest https://urltofile.com/file -OutFile "C:\pathtofile.bleh"Invoke-WebRequest https://urltofile.com/file -OutFile "C:\pathtofile.bleh" While not as elegant as say wget or curl, it does the trick when there are no other options besides […]