Shabin Muhammed
Shabin Muhammed

Reputation: 1142

Error while enabling IIS optional feature IIS-ASPNET and IIS-ManagementConsole

I am unable to enable the optional feature IIS-ASPNET and IIS-ManagementConsole. I keep getting the below error

Enable-WindowsOptionalFeature : One or several parent features are disabled so current feature can not be enabled.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

What are the parent features of iis-aspnet and IIS-ManagementConsole that need to be enabled?

Upvotes: 4

Views: 5480

Answers (2)

codewario
codewario

Reputation: 21408

You need to pass the -All parameter to Enable-WindowsOptionalFeatures which installs the required parent features:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET, IIS-ManagementConsole -All

Upvotes: 6

Jalpa Panchal
Jalpa Panchal

Reputation: 12749

To enable asp.net you also need to install the .net extensibility feature. you could try below PowerShell command:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility, IIS-NetFxExtensibility45,IIS-ASPNET, IIS-ASPNET45

enter image description here

To enable ManagementConsole you could use below command:

Enable-WindowsOptionalFeature -Online -FeatureName  IIS-ManagementConsole

enter image description here

Upvotes: 0

Related Questions