Lab Tasks
1. List Websites
View all IIS websites on the server.
Get-Website
2. Create Website
Create a new website with New-Website.
New-Website -Name "Portal" -PhysicalPath "C:\inetpub\portal" -Port 8080
3. Create App Pool
Create an application pool for better resource isolation.
New-WebAppPool -Name "PortalAppPool"
4. Add HTTPS Binding
Add an HTTPS binding to a website for secure connections.
New-WebBinding -Name "Portal" -Protocol https -Port 443
5. Configure Authentication
Enable Windows Authentication for integrated security.
Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/windowsAuthentication" -Name enabled -Value True
IIS Management:
Internet Information Services (IIS) is Microsoft's web server. Use
Internet Information Services (IIS) is Microsoft's web server. Use
Import-Module WebAdministration to access IIS cmdlets.
Tip: Use
Get-Help <cmdlet> to learn about any command. Try Get-Help New-Website -Examples!