Skip to content

Instantly share code, notes, and snippets.

@uialberto
Created May 30, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uialberto/d742aa8544c7afc61fb41fe3416f7d1e to your computer and use it in GitHub Desktop.
Save uialberto/d742aa8544c7afc61fb41fe3416f7d1e to your computer and use it in GitHub Desktop.
Instalacion IIS Web Server por Console
@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