Powershell – Download Image from an image url

Question:

limited knowledge with powershell.
I try to download a image from an image url. for example like this :
http://hdwallpaperia.com/wp-content/uploads/2014/01/Mc-Laren-P1-Wallpaper-Image-Picture-640×360.jpg

Before to reach the link, I have to login first. here is My login page html code:

Here is my powershell code :

I can successfully login and reach the img link, but don’t know how to download the image. What command can helps me to download?

Answer:

You’re overcomplicating it using COM. I couldn’t test these atm., but they should work.

Source:

Powershell – Download Image from an image url by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply