E-booki od M$

Na blogu https://blogs.msdn.microsoft.com/mssmallbiz/2016/07/10/how-to-download-all-of-the-free-ebooks-and-resources-in-my-free-ebooks-giveaway/ pojawił się taki wpis oraz bardzo długa lista książeczek do ściągnięcia… zasysam wszystkie wiec poniżej mały skrypt do ściagania. Przy okazji przykład 2 metod ściągania plików

Start-BitsTransfer -Source "http://www.mssmallbiz.com/ericligman/Key_Shorts/MSFTFreeEbooks.txt" -Destination "filelist.txt" -Priority Low -ProxyUsage SystemDefault -TransferType Download

Get-Content "filelist.txt" | ForEach-Object {Invoke-WebRequest $_ -OutFile $(Split-Path $_ -Leaf)}