我正在尝试通过 DISM 安装 IIS。通过代码或直接在 cmd 提示符下执行命令时,它似乎运行良好,但从未安装过 IIS。我不确定我哪里出错了。对不起,代码中的文本块。我尝试只运行其中一项功能并获得相同的结果,并且出于我的目的,我需要安装所有这些功能。
START /WAIT DISM /Online /Enable-Feature /FeatureName:IIS-IIS6ManagementCompatibility /FeatureName:IIS-ManagementConsole /FeatureName:IIS-Metabase /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-NetFxExtensibility /FeatureName:IIS-ASP /FeatureName:IIS-ASPNET /FeatureName:IIS-ISAPIExtensions /FeatureName:IIS-ISAPIFilter /FeatureName:IIS-CommonHttpFeatures /FeatureName:IIS-DefaultDocument /FeatureName:IIS-IIS6ManagementConsole /FeatureName:IIS-StaticContent /FeatureName:IIS-WebServer /FeatureName:IIS-WebServerRole