Created
May 30, 2020 16:18
-
-
Save uialberto/d742aa8544c7afc61fb41fe3416f7d1e to your computer and use it in GitHub Desktop.
Instalacion IIS Web Server por Console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "IIS Web Server no esta instalado. Deberia ser instalado." | |
dism /online /enable-feature /featurename:IIS-WebServer /all | |
) | |
dism /online /get-featureinfo /featurename:IIS-ASPNET45 | find "Deshabilitado" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "ASPNET no esta instalado. Deberia ser instalado." | |
dism /online /enable-feature /featurename:IIS-ASPNET45 /all | |
) | |
dism /online /get-featureinfo /featurename:IIS-HttpRedirect | find "Deshabilitado" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "HTTP Rediret no esta instalado. Deberia ser instalado." | |
dism /online /enable-feature /featurename:IIS-HttpRedirect /all | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment