Workaround for provisioning the Windows 2012 R2
The following changes are required in System Package Type and System Package to provision a Windows 2012 R2 X64 OS.
System Package Type (SPT)
There is no specific System Package Type (SPT) for Windows 2012 R2 X64 OS provisioning , so use the customized Windows 2012 X64 SPT.
For example, name of the existing OOB Windows 2012 X64 SPT should be specified as:
- Windows Server 2012 DataCenter x64
- Windows Server 2012 Standard x64
System Package (SP)
Create the System Package using the above SPT. To provision the Windows 2012 R2 OS following workaround is required:
OS Component Tab:
- Open the system package and select OS components.
- Select the OS options.
- Server Roles/Features that are listed, do not support provisioning of the Windows 2012 R2 OS.
- Check the Use Script to install Roles/ Features field and provide the OS component command as below:
DISM.exe /Online /Enable-Feature /FeatureName:IIS-WebServer /FeatureName:IIS-WebServerRole
Unattended Entries Tab
- Open the System Package and select Unattend Entries tab.
If you select the Customize the Unattend Entries File option, add/replace the XML value with R2 based on the type of OS as listed below:
Actual OS Type
Added R2 string OS Type
Windows Server 2012 Standard
Windows Server 2012 R2 Standard
Windows Server 2012 StandardCore
Windows Server 2012 R2 StandardCore
Windows Server 2012 Datacenter
Windows Server 2012 R2 Datacenter
Windows Server 2012 DatacenterCore
Windows Server 2012 R2 DatacenterCore
Following table lists the example of the XML tag
Actual XML tag
Added/Replaced XML tag
<Value>Windows Server 2012 SERVERDATACENTER</Value>
<Value>Windows Server 2012 R2 SERVERDATACENTER</Value>
<cpi:offlineImagexmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:K:\Windows\Win2012_R2\sources\install.wim#Windows Server 2012 SERVERDATACENTER"/>
<cpi:offlineImagexmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:K:\Windows\Win2012_R2\sources\install.wim#Windows Server 2012 R2 SERVERDATACENTER"/>
- If you select Additional Unattend Entries then replace the above XML value by selecting corresponding XML tags as shown below:
XML Tag Location 1:
XML Tag Location 2: