Tuesday 8 January 2013

Automatically download and install Windows ADK Components for System Center 2012 SP1

In a slight update to my previous post on setting up the software pre-requisites for System Center 2012 SP1 I've now added a couple of PowerShell snippets to automate the download and installation of the required Windows ADK components.


Virtual Machine Manager ADK Pre-Req Download and Install

$dwnld = "C:\Downloads"
if (!(Test-Path -path $dwnld))
 {
 New-Item $dwnld -type directory
 }
$object = New-Object Net.WebClient
$ADKurl = 'http://download.microsoft.com/download/9/9/F/99F5E440-5EB5-4952-9935-B99662C3DF70/adk/adksetup.exe'
$object.DownloadFile($ADKurl, "$dwnld\adksetup.exe")
Start-Process -FilePath "$dwnld\adksetup.exe" -Wait -ArgumentList "/quiet /features OptionId.DeploymentTools OptionId.WindowsPreinstallationEnvironment"



Configuration Manager ADK Pre-Req Download and Install

$dwnld = "C:\Downloads"
if (!(Test-Path -path $dwnld))
 {
 New-Item $dwnld -type directory
 }
$object = New-Object Net.WebClient
$ADKurl = 'http://download.microsoft.com/download/9/9/F/99F5E440-5EB5-4952-9935-B99662C3DF70/adk/adksetup.exe'
$object.DownloadFile($ADKurl, "$dwnld\adksetup.exe")
Start-Process -FilePath "$dwnld\adksetup.exe" -Wait -ArgumentList "/quiet /features OptionId.DeploymentTools OptionId.WindowsPreinstallationEnvironment OptionId.UserStateMigrationTool"

2 comments:

Exchange email archiving said...

Thanks, i was always doing it manually haha...

Dog Training Kingdom said...

This is a pretty nice tutorial and very good and clearly described. Thank you! :)