Monday, February 9, 2015

script to activate the .Net 4.5 WCF in Windows Server 2012 Core

it is quick easy when we need to activate in the .Net WCF with GUI windows Server.

go to Control Panel and click on Programs and Features Icon, then click on Turn Windows Features on or Off on the left side windows.








Unfortunately. the Windows Server 2012 Core does not have the UI, we only can configure it via the CMD Windows. the following script will done the job for you



REM install Windows IIS features for WCF ran under .Net Framework
dism /Online /Enable-Feature /FeatureName:WAS-WindowsActivationService
dism /Online /Enable-Feature /FeatureName:WAS-ProcessModel
dism /Online /Enable-Feature /FeatureName:WAS-NetFxEnvironment
dism /Online /Enable-Feature /FeatureName:WAS-ConfigurationAPI
dism /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation
dism /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation45

REM Feature Install Complete
pause



No comments:

Post a Comment