Summery

Internet Information Services (IIS) is Microsoft’s web server, built into Windows (optional feature / Server role). Serves HTTP/HTTPS, plus FTP/SMTP.

It’s files don’t have extensions and directories are case-insesitive, meaning you can search for folder and Folder. It’s a good idea to user the lower-case only versions of wordlists when working with IIS to avoid creating noise because of that.

Default user is defaultapppool. Usually low privileged but can have singular important permissions so always worth a check.

Web server read file thanks to the inherited ACE BUILTIN\Users:(I)(RX).
If it is missing, webserver can’t read the files and you can see the “Server Error 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.” error on the browser.

Default directories

wwwroot - Default site document root, the actuall web content. Webshells, misconfigs, upload vulns, backup files, source code leaks.
history - Stores IIS configuration snapshots when you make changes via IIS Manager. Useful as any history file - can leak machine keys, connection strings, old secrets, app passwords from past deployments
logs - Similar to the above, a lot of information can be found there, also Log poisoning is possible if write permissions are in place
custerr - Holds custom error pages. IIS serves these when configured
temp - Temporary files for IIS (cache, worker process temp data) - auto-cleanup handled by IIS. From time to time might hold interesting things like cached sessions, temp files with creds, leftover uploads.
aspnet_client - ASP.NET framework resources. Contains client-side scripts, image assets, and handlers used by .NET apps - minimal value. Maybe version fingerprinting (ASP.NET 4.0 vs 4.5) and that’s all.
DeviceHealthAttestation - Windows Defender /unrelated to core IIS, likely from Windows feature installation. Ignore for web hosting

TO-DO
C:\Windows\System32\inetsrv\config\applicationHost.config and inetsrv in general

References

Similar concepts: Apache, nginx