Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

Download SharePoint 2013 preview (with PowerShell)

Today a number of new Microsoft Downloads went live for SharePoint 2013 Preview.  I wrote a quick PowerShell script to download everything all at once. Enjoy! 

Smile

Get the PowerShell Script

image

  download-SharePoint2013-Preview.ps1

 

PowerShell Code

Import-Module BitsTransfer
New-Item C:\temp -Type Directory -Force
 
Function DownloadFile ($url)
{
    $file = $url.Substring($url.LastIndexOf("/") + 1, $url.Length - $url.LastIndexOf("/") - 1)
    Try {
        Write-Host "Downloading $file..."
        Start-BitsTransfer -Source $url -Destination "c:\temp\$destinationFile" -DisplayName "Downloading $file to c:\temp\$destinationFile" -Priority High -Description "From $url..." -ErrorVariable err
    }
    Catch
    {
        Write-Warning " - An error occurred downloading $file"
        break
    }
}
$source = @("http://download.microsoft.com/download/D/E/0/DE02CCED-5209-49FC-9F1B-0F86D3269D4C/sharepointclientcomponents_x64.msi",
"http://download.microsoft.com/download/D/E/0/DE02CCED-5209-49FC-9F1B-0F86D3269D4C/sharepointclientcomponents_x86.msi",
"http://download.microsoft.com/download/7/E/D/7EDC5BE7-811C-4854-8502-EAFDEBB981B0/sharepointdesigner_en-us_x64.exe",
"http://download.microsoft.com/download/7/E/D/7EDC5BE7-811C-4854-8502-EAFDEBB981B0/sharepointdesigner_en-us_x86.exe",
"http://download.microsoft.com/download/7/7/3/773CA2C2-579B-408C-808E-A6F561194E20/Ig15_SP_IT_training.zip",
"http://download.microsoft.com/download/8/C/8/8C8FB472-2B18-42CE-9055-4022145350C8/SharePointFoundation_en-us_x64.img",
"http://download.microsoft.com/download/5/6/8/568E0DFE-E5A9-4B6E-9BD6-71537A736C1C/SharePointFoundationLP_en-us_x64.exe",
"http://download.microsoft.com/download/C/5/8/C58AC1BB-C483-4572-92C6-84060E204EA7/serverlanguagepack_en-us_x64.exe")
$source | ForEach-Object {DownloadFile $_}

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲