下载网站源字符串
$web=Invoke-WebRequest https://www.pstips.net -UseBasicParsing
$web.Images
中包含了图片
$web.Images | select -ExpandProperty src
PS C:\>https://www.pstips.net/wp-content/uploads/2013/11/PSTips-Logo.png
https://www.pstips.net/wp-content/uploads/2013/01/Mastering-PowerShell.png
https://www.pstips.net/wp-content/uploads/2014/08/pstips-qa-270×250.png
https://www.pstips.net/wp-content/uploads/2014/04/DayBreak-270×250.jpg
根据图片链接,和名称自定义图片的文件名,然后使用powershell下载保存即可。
Invoke-WebRequest “https://www.pstips.net/a.png” -OutFile my.png