Script to download all images from a webpage

Note that the below PowerShell script works very well to download all of the images posted to a single web page.


Invoke-WebRequest https://help.relativity.com/RelativityOne/Content/Relativity_Legal_Hold/Legal_Hold_Settings.htm |

select -expand images |

select -expand src |

foreach { start-bitstransfer $("https://help.relativity.com/RelativityOne/Content/Relativity_Legal_Hold/{0}" -f $_) C:\foofolder}


List the url on the first line after 'Invoke-WebRequest', and then put just the path before the final htm file on the last line before {0} . End the script with the path to a folder on your own network.


As always, tried and tested tonight on my PC. Thanks to Chad Miller for posting this here.