Home Tutoriais PowerShell Automatizando a Instalação dos pré-requisitos do SCCM 2012

Automatizando a Instalação dos pré-requisitos do SCCM 2012

logo-POSH-100x100Script do PowerShell que automatiza a instalação dos pré-requisitos do Configuration Manager 2012. Basicamente ele faz o download e a instalação dos principais componentes necessários e requeridos para a instalação do SCCM.

 

 

 

 

 


 

 

 

Import-Module ServerManager

$download = "C:\Downloads"
if (!(Test-Path -path $download))
 {
 New-Item $download -type directory
 }
$object = New-Object Net.WebClient
$AMOurl = 'http://go.microsoft.com/fwlink/?LinkID=239666&clcid=0x409'
$SNCurl = 'http://go.microsoft.com/fwlink/?LinkID=239648&clcid=0x409'
$RPTurl = 'http://download.microsoft.com/download/0/4/F/04F99ADD-9E02-4C40-838E-76A95BCEFB8B/ReportViewer.exe'
$object.DownloadFile($AMOurl, "$download\SQL2012AMO.msi")
$object.DownloadFile($SNCurl, "$download\SQL2012NCli.msi")
$object.DownloadFile($RPTurl, "$download\ReportViewer.exe")
Start-Process -FilePath msiexec -ArgumentList /i, "$download\SQL2012AMO.msi", /qn -Wait
Start-Process -FilePath msiexec -ArgumentList /i, "$download\SQL2012NCli.msi", /qn, IACCEPTSQLNCLILICENSETERMS=YES -Wait
Start-Process -FilePath "$download\ReportViewer.exe" -ArgumentList /q -Wait

#instalação do IIS
Install-WindowsFeature Web-Server,Web-Request-Monitor,Web-Windows-Auth,Web-Basic-Auth,Web-URL-Auth,Web-Windows-Auth,Web-IP-Security,Web-Asp-Net,Web-Asp-Net45,Web-Asp,Web-CGI,Web-Mgmt-Tools,NET-WCF-HTTP-Activation45,Web-Metabase

#instalação do BITS
 Install-WindowsFeature BITS -includeAllSubFeature

 
#instalação do WSUS
Install-WindowsFeature UpdateServices -includeAllSubFeature

#instalação do Remote Differential Compression
Install-WindowsFeature RDC -includeAllSubFeature

#instalação do .NET Framework 3.0
Install-WindowsFeature NET-Framework-Features -includeAllSubFeature  

# Fonte http://systemscentre.blogspot.com.br/ adaptação www.mcsesolution.com
 
 
 

Última atualização (Seg, 08 de Julho de 2013 02:29)

 


Artigos relacionados:

Powered By relatedArticle

World's Top Web Hosting providers awarded and reviewed. Find a reliable green hosting service, read greengeeks review