Skip to content

Instantly share code, notes, and snippets.

@jaapbrasser
Last active November 10, 2019 17:44
Show Gist options
  • Save jaapbrasser/766a0bef460fcf997db8b0f964d7260a to your computer and use it in GitHub Desktop.
Save jaapbrasser/766a0bef460fcf997db8b0f964d7260a to your computer and use it in GitHub Desktop.
Download all Microsoft Ignite presentations
(irm 'https://api-myignite.techcommunity.microsoft.com/api/session/all') |
? title -match powershell |
% -Parallel {
iwr $($_.downloadVideoLink) -OutFile "C:\ignite\$($_.sessioncode).mp4"
}
# Originally tweeted by Anthony Allen
# https://twitter.com/PSAdm/status/1192909669947318272?s=19
@kilasuit
Copy link

kilasuit commented Nov 9, 2019

on line 5 you can add -ThrottleLimit 10 (or 20 or even 50 if adventurous & have the CPU & Network bandwidth) to speed this up further as by default the for each parallel will do 5 runs at a time

(you could also remove line 2 for all the sessions 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment