PowerShell Script to download the SharePoint Conference 2012 Videos

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:

PowerShell Script to download the SharePoint Conference 2012 Videos

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

Share this post with your followers on twitter:

timthumb

Leave  a comment and don’t forget to like us on Facebook here and to follow me on Google+ here and on Twitter here  for the latest news and technical articles on SharePoint.  Also, don’t forget to check out SharePoint Community.Net for more great SharePoint Content.

No ratings yet.

Please rate this

 
Comments

Can someone anyone report what is the total size of all the downloads?

Hey, They should be around 70-80GB!

Not Working this script…
Showing issue at $a = (1$rss.downloadstring(“http://channel9.msdn.com/Events/SharePoint-Conference/2012/RSS/mp4high”))

What is 1$rss?

Hey.. it should be [xml .. but the Syntax Highlighter is messing up the code! That’s why I said you should download it using the link right after!

Leave a Reply