Automatizando instalação de Pré-requisitos do System Center 2012 R2

Segue alguns scripts para automatizar a instalação dos pré-requisitos do System Center 2012, os mesmos devem ser executados através do Windows Powershell com privilégios administrativos.

System Center Virtual Machine Manager 

Download e instalação dos Microsoft Windows ADK:

  • Deployment Tools.
  • Windows Preinstalation Environment (Windows PE).

Script:

$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”

System Center Configuration Manager 

Habilitar o Microsoft .Net Framework 3.5 no Windows Server 2012.

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Instalar as demais Features.

Get-Module ServerManager
Install-WindowsFeature Web-Windows-Auth,Web-ISAPI-Ext,Web-Metabase,Web-WMI,BITS,RDC, NET-Framework-Features,Web-Asp-Net,Web-Asp-Net45,NET-HTTP-Activation, NET-Non-HTTP-Activ,UpdateServices-Services,UpdateServices-RSAT

Download e instalação dos Microsoft Windows ADK:

  • Deployment Tools.
  • Windows Preinstalation Environment (Windows PE).
  • User State Migration Tool (USMT).

$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”

System Center Service Manager

Habilitar o Microsoft .Net Framework 3.5 no Windows Server 2012.

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Instalar os demais requisitos (SQL Analysis Management Objects,  SQL Native Client, Report Viewer 2008 SP1) 

$dwnld = “C:\Downloads”
if (!(Test-Path -path $dwnld))
{
New-Item $dwnld -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, “$dwnld\SQL2012AMO.msi”)
$object.DownloadFile($SNCurl, “$dwnld\SQL2012NCli.msi”)
$object.DownloadFile($RPTurl, “$dwnld\ReportViewer.exe”)
Start-Process -FilePath msiexec -ArgumentList /i, “$dwnld\SQL2012AMO.msi”, /qn -Wait
Start-Process -FilePath msiexec -ArgumentList /i, “$dwnld\SQL2012NCli.msi”, /qn, IACCEPTSQLNCLILICENSETERMS=YES -Wait
Start-Process -FilePath “$dwnld\ReportViewer.exe” -ArgumentList /q -Wait

System Center Orchestrator

Habilitar o Microsoft .Net Framework 3.5 no Windows Server 2012.

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Instalar as demais Features.

Add-WindowsFeature Web-Server,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Digest-Auth,Web-Windows-Auth,Web-Net-Ext,Web-Asp-Net,Web-CGI,Web-Mgmt-Tools,NET-WCF-HTTP-Activation45,NET-WCF-MSMQ-Activation45,NET-WCF-Pipe-Activation45,NET-WCF-TCP-Activation45,MSMQ,RDC,WAS

System Center Operations Manager

$dwnld = “C:\Downloads”
if (!(Test-Path -path $dwnld))
 {
 New-Item $dwnld -type directory
 }
$object = New-Object Net.WebClient
$RPTurl = ‘http://download.microsoft.com/download/E/A/1/EA1BF9E8-D164-4354-8959-F96843DD8F46/ReportViewer.exe’
$object.DownloadFile($RPTurl, “$dwnld\ReportViewer.exe”)
Start-Process -FilePath “$dwnld\ReportViewer.exe” -ArgumentList /q -Wait

Console Web (Windows Features):

Add-WindowsFeature Web-Server,Web-Request-Monitor,Web-Windows-Auth,Web-Asp-Net,Web-CGI,Web-Mgmt-Tools,NET-WCF-HTTP-Activation45,Web-Metabase

System Center App Controller

Instalação das Features do Windows.

Add-WindowsFeature NET-Framework-Features,NET-Framework-Core,Web-Mgmt-Console,Web-Static-Content,Web-Default-Doc,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Http-Tracing,Web-Stat-Compression,Web-Filtering,Web-Basic-Auth,Web-Windows-Auth,Web-ISAPI-Filter,Web-ISAPI-Ext,Web-Net-Ext,Web-Asp-Net45

Anúncios

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s