Resolve Missing Media Features on Windows Server 2012 R2

Jun 24, 2014
admin

If you’re using Windows Server 2012 you’ll know that you need to enable the Desktop Experience feature in order to gain access to media playback components such as Windows Media Player. If you upgrade from Windows Server 2012 to Windows Server 2012 R2 before enabling the Desktop Experience feature you may find that Windows Media Player is missing. In order to resolve this issue open an elevated command prompt window and execute the following command:

dism /online /enable-feature /featurename:MediaPlayback

The Media Playback feature is also required by the Windows Server Essentials Media Pack and if it’s missing the Windows Server Essentials Media Streaming Service (WseMediaSvc) will fail to start with the following error:

Service cannot be started. System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
 at Microsoft.WindowsServerSolutions.MediaStreaming.Log.CheckHResultAndThrow(String format, Int32 hr)
 at Microsoft.WindowsServerSolutions.MediaStreaming.WmpNssManager.IsMediaSharingEnabled()
 at Microsoft.WindowsServerSolutions.MediaStreaming.MediaStreamingProviderCore..ctor(IDlnaServerManager dsm, IServerLibraryManager slm, ISharedFolderManager sfm, IHdmiOutManager hom, IAssessmentManager am, ISqmManager sqm)
 at Microsoft.WindowsServerSolutions.MediaStreaming.MediaStreamingProviderCore..ctor()
 at Microsoft.WindowsServerSolutions.MediaStreaming.MediaStreamingProviderCore.GetInstance()
 at Microsoft.WindowsServerSolutions.MediaStreaming.ServiceShell.OnStart(String[] args)
 at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)