July 31st, 2015

PowerTip: Download Links from Webpage with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to download links from a webpage.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily download links from a webpage that has a lot of links I want?

Hey, Scripting Guy! Answer Use Invoke-WebRequest and select Links and href, for example:

(Invoke-WebRequest -Uri "http://www.scriptingguys.com").Links.Href

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback