PowerShell Tip: Download files from URL


Requirement

Need Script to download from URL - May be PDF, DOC or any extension.

Solution

Refer this link

Yes, it works fine.

But what if you don't want to us the progress bar...

The Trick

My PowerShell trick when you don't want to use Progress is:

 

Start-BitsTransfer -Source "http://gallery.technet.microsoft.com/scriptcenter/Windows-System-Inventory-616e2749/file/92187/1/System_Inventory.7z" `
-Destination "C:\Temp\"

Note: This applies to PowerShell 2.0

Enjoy PowerShell! :)