This file contains hidden or 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
| $configSection = Get-IISConfigSection -SectionPath "system.applicationHost/sites" | |
| $state = Get-IISConfigCollection $configSection | Get-IISConfigCollectionElement -ConfigAttribute @{"Name"="Default Web Site"} | Get-IISConfigAttributeValue -AttributeName "State" | |
| if($state -eq "Started") | |
| { | |
| Write-Host "Default Web Site esta iniciado" -ForegroundColor Green | |
| }else | |
| { | |
| Write-Host "Default Web Site no esta iniciado" -ForegroundColor Red | |
| } |
This file contains hidden or 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
| $goodmodules = @( | |
| "Web-Server", | |
| "Web-WebServer", | |
| "Web-Common-Http", | |
| "Web-Default-Doc", | |
| "Web-Default-Doc" | |
| ) | |
| $badmodules = @( | |
| "Web-DAV-Publishing", |
This file contains hidden or 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
| Write-Host "Instalacion IIS Server Script V1" | |
| Import-Module servermanager | |
| Remove-WindowsFeature Web-ASP, Web-CGI,Web-Ftp-Server | |
| Add-WindowsFeature Web-WebServer, Web-Common-Http, Web-Asp-Net45, Web-Static-Content |
This file contains hidden or 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 | |
| REM Install IIS-WebServer | |
| dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul | |
| if %ERRORLEVEL% == 0 ( | |
| echo "IIS Web Server no esta instalado. Instalando..." | |
| dism /online /enable-feature /featurename:IIS-WebServer /all | |
| ) | |
| REM Install IIS-ASPNET45 |
This file contains hidden or 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 | |
| ) |
NewerOlder
