How to Create and Deploy Server Images of Service Manager
Updated: May 13, 2016
Applies To: System Center 2012 SP1 - Service Manager, System Center 2012 R2 Service Manager, System Center 2012 - Service Manager
You can use the information in this topic to create a system image that contains Windows server, SQL Server, and Service Manager for use as a template that you can apply to new servers. Follow the basic steps below to prepare the image. You can modify them, as needed for your environment. For more information about the Windows System Preparation Tool, What is Sysprep?
Afterward, modify and save the sample CMD file below to create your own customized version and then run the file.
Install Windows Server on the new server.
Install SQL Server in Prepare for imaging mode. This installs the binary files, but does not configure SQL server.
SQL server is unusable at this point.
Copy the SQL Server installation files to a temporary location on the server. For example, c:\Runonce\ SQLFULL_ENU.
Copy the System Center 2012 Service Manager installation files to a temporary location on the server. For example, c:\Runonce\SCSM.
Save the example CMD file shown below and customize it for your environment, where necessary. This file will run SQL Server setup to complete the SQL Server installation and then run an unattended installation of Service Manager. Save this file to a temporary location such as C:\Runonce\FirstRun.cmd.
Run the System Preparation Tool (Sysprep) with the /generalize command to generalize the server.
Capture the Windows installation with ImageX, by creating a reference images with which to install servers with the same hardware configuration.
Create a Windows Unattend.xml file to customize Windows when the image is booted and have it run FirstRun.cmd.
Copy the following sample and modify it, as needed.
@echo off set ServiceAccountDomain=contoso set ServiceAccountName=Administrator set ServiceAccountPassword=P@$$word echo Finalizing SQL installation... start /wait c:\RunOnce\SQLFULL_ENU\setup.exe /ConfigurationFile=c:\RunOnce\SQL2012Complete.ini echo Installing additional SQL features... start /wait c:\RunOnce\SQLFULL_ENU\setup.exe /ConfigurationFile=c:\RunOnce\SQL2012Shared.ini echo Installing System Center Service Manager... start /wait C:\RunOnce\SCSM\setup.exe /Install:Server /AcceptEula /RegisteredOwner:SCSM /RegisteredOrganization:Microsoft /CreateNewDatabase /SqlServerInstance:%computername% /ManagementGroupName:%computername% /AdminRoleGroup:%ServiceAccountDomain%\%ServiceAccountName% /ServiceRunUnderAccount:%ServiceAccountDomain%\%ServiceAccountName%\%ServiceAccountPassword% /WorkflowAccount:%ServiceAccountDomain%\%ServiceAccountName%\%ServiceAccountPassword% /CustomerExperienceImprovementProgram:Yes /EnableErrorReporting:Yes /silent