As you know (I’m sure), there are a lot of awesome changes in System Center Configuration Manager 2012. One of them is that ConfigMgr 2012 installation process generates a file called ConfigMgrAutoSave.ini and stores it under %temp% folder. This file can be used to perform an unattended installation.

image

If you want to perform a scripted installation, follow these steps:

1. Save ConfigMgrAutoSave.ini (you can also create it) to another location.

2. From a CMD windows, go to <ConfigMgr install source\SMSSetup\Bin\X64

3. Type setup.exe /script <the script path> (you can also use setupwpf.exe)

image

Note that setup.exe will not check components (.Net, manifest file, SQL Express …). They should be present (or downloaded using setupDL.exe /NoUI <Path>)

The script file content to install a CAS server :

[Identification]
Action=InstallCAS

[Options]
ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
SiteCode=<Site Code>
SiteName=<Site Name>
SMSInstallDir=<ConfigMgr install folder path>
SDKServer=<FQDN for SDKServer>
PrerequisiteComp=1
PrerequisitePath=<Prereqs folder path>
MobileDeviceLanguage=0
AdminConsole=1 (0 is you don’t want to install the console)

[SQLConfigOptions]
SQLServerName=<FQDN of the SQL Server machine>
DatabaseName=<SQLServerName\InstanceName> (leave blank for the default instance)
SQLSSBPort=4022

[HierarchyExpansionOption]

The script file content to install a Primary site server | Child site server

[Identification]
Action=InstallPrimarySite

[Options]

ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
SiteCode=<Site Code>
SiteName=<Site Name>
SMSInstallDir=<ConfigMgr install folder path>
SDKServer=<FQDN for SDKServer>
RoleCommunicationProtocol=HTTPorHTTPS
ClientsUsePKICertificate=0
PrerequisiteComp=0
PrerequisitePath=<Prereqs folder path>
MobileDeviceLanguage=0
ManagementPoint=<FQDN MP server>
ManagementPointProtocol=HTTP
DistributionPoint=<FQDN DP server>
DistributionPointProtocol=HTTP
DistributionPointInstallIIS=0
AdminConsole=1 (0 is you don’t want to install the console)

[SQLConfigOptions]
SQLServerName=<FQDN SQL server machine>
DatabaseName=<SQLServerName\InstanceName> (leave blank for the default instance)
SQLSSBPort=4022

[HierarchyExpansionOption]
CCARSiteServer=<FQDN CAS server> (This line is only to install a child site, it’s no needed for a PS server)

4. To monitor the installation you can refer to ConfigMgrSetup.log and sitecomp.log.