An old post describes how to install IIS on Windows 11 .
After a Windows reinstall, however, you may need to make IIS available to your system.
Go to Control Panel > Programs > Programs and Features > Turn Windows features on or off. Select the Internet Information Services option and click OK. After that, do as described in the old post.
PS: Before reinstalling Windows, be sure to backup all content of the current wwwroot directory since each time you reinstall Windows IIS the inetpub, then wwwroot, directory will be gone.
Updated on 2.12.2024