FolderRisk: Do not touch
inetsrv C:\Windows\System32\inetsrv
inetsrv: IIS programs and configuration (w3wp.exe, appcmd.exe, inetmgr.exe, config folder); present when IIS is installed, on client or server.
What it’s for
inetsrv appears when IIS is installed: the Web Server role (Web-Server) on Windows Server, or the “Internet Information Services” feature on Windows 10 and 11. It is therefore not specific to server editions. It holds IIS’s executables and, above all, its configuration in config, while the sites themselves live elsewhere, by default under C:\inetpub.
What it contains
appcmd.exe: the IIS command-line administration tool (sites, pools, configuration backups).inetmgr.exe: Internet Information Services (IIS) Manager.w3wp.exe: the worker process that runs each application pool.config:applicationHost.configand the other configuration files (see its page).backup: configuration backups created withappcmd add backup.- The request-processing modules (DLLs).
Risks and best practices
- Back up the configuration with
appcmd add backupbefore a structural change, and back up theconfigfolder. - Do not copy this folder between servers to clone IIS: use shared configuration or
appcmdconfiguration export/import. - The DLLs and executables are updated by Windows Update; do not replace them by hand.
Useful commands
:: Declared sites and pools%windir%\system32\inetsrv\appcmd.exe list sites%windir%\system32\inetsrv\appcmd.exe list apppools
:: As administrator: named configuration backup%windir%\system32\inetsrv\appcmd.exe add backup "before-change"%windir%\system32\inetsrv\appcmd.exe list backups# Is IIS installed? (server)Get-WindowsFeature Web-Server# Is IIS installed? (client)Get-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole