theme-sticky-logo-alt

PowerShell Script to download the SharePoint Conference 2012 Videos

4 Comments

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.

Previous Post
SharePoint 2013 User Profile doesn’t support two HTML Properties
Next Post
CodePlex Projects Update

4 Comments

  • September 12, 2013 at 4:21 pm
    JohnC

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

    Reply
  • September 12, 2013 at 9:34 pm
    Venkat

    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?

    Reply
    • September 12, 2013 at 9:42 pm

      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!

      Reply

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1