Last active
November 18, 2022 08:47
-
-
Save shinish/5cee1d9006c71ef789441e170aaafac9 to your computer and use it in GitHub Desktop.
Learn to Install IIS server using Windows PowerShell from scratch
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
# Title : Installing Windows Feature - IIS (WebServer) using PowerShell | |
# -By Shinish.S | |
$IsInstalled = ((Get-WindowsFeature -Name Web-Server).installed) | |
if ($isinstalled -eq $false){ | |
Install-WindowsFeature Web-Server -IncludeManagementTools -IncludeAllSubFeature -Confirm:$false | |
Write-Output "Installation Complete" | |
} | |
else{ | |
Write-output "IIS Server (WebServer) is already installed" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an error: "'Get-WindowsFeature' is not recognized"