PowerShell Script to download the SharePoint Conference 2012 Videos
The post about the SharePoint 2012 Conferences being available for free on Channel 9 made quite a buzz last week, and recently I got asked if there was any way to Bulk Download them using the right name! I adapted the Script created by Todd Klindt for the TechEd 2013 North America Sessions to download the sessions for the SharePoint Conference without error! You can check out the script here:
Please note that unfortunately, the Synthax Highlighter Plugin messed up some of the PowerShell! To get the good Script make sure you check the download link at the end of the post!
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath $rss = (new-object net.webclient) $a = ($rss.downloadstring("http://channel9.msdn.com/Events/SharePoint-Conference/2012/RSS/mp4high")) $a.rss.channel.item | foreach{ $code = $_.comments.split("/") | select -last 1 $url = New-Object System.Uri($_.enclosure.url) $file = $code + "-" + $_.creator + "-" + $_.title.Replace(":", "-").Replace("?", "").Replace("/", "-").Replace("<", "") + ".mp4" if (!(test-path $file)) { $file $wc = (New-Object System.Net.WebClient) $wc.DownloadFile($url, $file) } }
The download the PowerShell File, click the following link: Download SharePoint Conference 2012 PowerShell Script