You are currently offline, waiting for your internet to reconnect

Deploying a service template in System Center 2012 Virtual Machine Manager using a Windows Core VHD fails


When attempting to deploy a service template in System Center 2012 Virtual Machine Manager using a Windows Core VHD, the process fails with the following errors:

Error (22042)
The service was not successfully deployed. Review the event log to determine the cause before you take corrective action.

Recommended Action
The deployment can be restarted by retrying the job.

Information (21947)
The script command (dism.exe dism.exe /online /NoRestart /enable-feature /featurename:NetFx2-ServerCore /featurename:MicrosoftWindowsPowerShell /featurename:ServerManager-PSH-Cmdlets) was executed on the computer  and returned a result exit code (87).

Error (22010)
VMM failed to enable Server Manager PowerShell on the guest virtual machine. Please log into the virtual machine and look in the event logs (%WINDIR%\Logs\Dism\dism.log).


This is by design.  Service templates using Windows Core operating systems are not currently supported.


The following work arounds are available:

- Enable all the roles/features in the virtual machine prior to creating the sysprep VHD.

- Run DISM.exe as part of the application deployment using a pre-install script. 

Executable Program: C:\Windows\system32\dism.exe
Parameters: /online /norestart /enable-feature /featurename:NetFx2-ServerCore /featurename:NetFx3-ServerCore /featurename:DNS-Server-Core /featurename:DirectoryServices-DomainController-ServerFoundation
Timeout: 240 seconds

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2680242 - Last Review: 04/03/2012 22:36:00 - Revision: 3.0

  • KB2680242