Quick batch file to install IIS if it's not installed
@ECHO OFF | |
dism /online /get-featureinfo /featurename:IIS-WebServer | find "State : Disabled" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "IIS Web Server is not installed" | |
dism /online /enable-feature /featurename:IIS-WebServer /all | |
) | |
dism /online /get-featureinfo /featurename:IIS-WebServer | find "State" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment