Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 629
Shabin Muhammed Avatar asked Oct 18 '25 16:10

Shabin Muhammed


1 Answers

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
like image 108
Bender the Greatest Avatar answered Oct 20 '25 04:10

Bender the Greatest