Use this when creating or reviewing an IIS website.
Websites
An IIS website is a top-level site with its own bindings, physical path, application pool and settings, created in IIS Manager or with New-IISSite or New-Website.
1. Get-Website — state Started?
2. Physical path exists and readable.
3. Default document/directory settings.
4. Logs.
5. Test URL.
site → bindings → physical path → app
Context & applicabilityCommon mistakes · platform/version boundaries
- All sites in the DefaultAppPool.
- App pools running as LocalSystem.
- Directory browsing enabled.
- Logs never cleaned, filling the system drive.
Operational reference
Fast context before you go deeper.
Get-Website | Select Name,State,PhysicalPath,BindingsVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Get-Website | Select Name,State,PhysicalPath,Bindings
Get-IISAppPool | Select Name,State,ManagedRuntimeVersion
Invoke-WebRequest https://intranet.corp.local -UseBasicParsing | Select StatusCode
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Each site has its own bindings, physical path and pool.
- Logs are kept per site ID.
- Stopped sites return 503 or connection errors.
Get-Website— sites, state, bindingsGet-IISAppPool— application pools and stateGet-WebBinding— bindingsGet-ChildItem IIS:\SslBindings— certificate bindingsGet-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20— request log
ReferenceWhy it matters1 section · depth on demand
Site structure
Site → applications → virtual directories, each mapped to an application pool (worker process w3wp.exe with its own identity). Separate applications into their own pools for isolation and recycling. appcmd list site, appcmd list apppool /state:Started. A stopped pool returns 503.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Sites in IIS have an ID, physical path, bindings and applications.
New-IISSite -Name intranet -PhysicalPath D:\Sites\intranet -BindingInformation '*:443:intranet.corp.example.com' -Protocol https -CertificateThumbPrint <thumb> -CertStoreLocation Cert:\LocalMachine\My -SslFlag Sni
Get-IISSite
Stop-IISSite -Name 'Default Web Site'
icacls D:\Sites\intranet /grant "IIS AppPool\intranet:(OI)(CI)RX"
Remove or stop the Default Web Site on production servers and give each site its own application pool identity.
ReferenceConfiguration & state1 section · depth on demand
Commands
Import-Module WebAdministration
Get-Website
New-Website -Name Intranet -PhysicalPath D:\Sites\intranet -HostHeader intranet.corp.local -Port 80
Get-IISAppPool
Restart-WebAppPool -Name Intranet
Documented example, not captured output. Logs are in %SystemDrive%\inetpub\logs\LogFiles\W3SVC<id>.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IIS → Websites. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/iis/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.