#Create SCCM Server OU
#Create the OU for The SCCM servers.
#All SCCM servers will be located in this OU
#On a domain controller, create the following OU: <CONTOSO.LOCALSERVERSCM>
NEW-ADOrganizationalUnit "LOCALSERVERSCCM"
#Prepare the Forest: Extend Schema
#PARAMETER ADgroup: Permission to the System Management folder will be granted to this group. Add the MP and site server to this group
Set-SchemaSysMan.ps1 -ExtadschPath C:\temp\SCCM2016\bin\extadsch.exe -ADgroup "<MP and site server group name>"
#Preparing the SCCM server:
Import-module servermanager
#Install Background Intelligent Transfer (BITS) and Remote Differential Compression (RDC)
Install-WindowsFeature -Name BITS , RDC
#Install .NET Framework 3.5 and .NET Framework 4.5
Install-WindowsFeature -Name NET-Framework-Features , NET-Framework-45-Features
#Install IIS
Install-WindowsFeature -Name Web-Server , Web-Common-Http , Web-Static-Content , Web-Http-Errors , Web-Security , Web-Windows-Auth , Web-App-Dev , Web-Asp-Net, Web-Asp-Net45, Web-Net-Ext, Web-Net-Ext45, Web-ISAPI-Ext, Web-Mgmt-Compat, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Wmi, Web-Scripting-Tools -IncludeManagementTools
#Installation of the Windows 8.1 ADK kit
#download ADK
$url = "https://download.microsoft.com/download/B/E/6/BE63E3A5-5D1C-43E7-9875-DFA2B301EC70/adk/adksetup.exe"
$output = "%userprofile%\downloads\adksetup.exe"
$start_time = Get-Date
Import-Module BitsTransfer
Start-BitsTransfer -Source $url -Destination $output -Asynchronous
#Install ADK
cd %userprofile%\downloads
adksetup /quiet /layout c:\temp\ADKoffline
c:\temp\ADKoffline\adksetup.exe /quiet /installpath c:\ADK /norestart /features OptionId.DeploymentTools OptionId.WindowsPreinstallationEnvironment OptionId.UserStateMigrationTool
#Configure WDS role
$wdsUtilResults = wdsutil /initialize-server
$wdsUtilResults | select -last 1
|
Commenter cet article