IIS 在 Windows 10 Creators Update 后消失(包括站点和应用程序池)

IIS gone (including sites and application pools) after Windows 10 Creators Update

安装 Windows 10 Creators Update (1607) 后,不再安装 IIS。

当我从 "Turn Windows features on or off" 重新安装它时,我发现我所有的应用程序池和我所有的网站都不见了。

"good" 消息是似乎有一种方法可以恢复 IIS 应用程序池和站点(从 "Turn Windows features on or off" 重新启用 IIS 后)。

有点棘手且容易出错,但总比没有好。

这是对我有用的程序:

  1. 在文本编辑器中,打开 C:\Windows.old\WINDOWS\System32\inetsrv\config\applicationHost.config。这是更新前的原始IIS数据。
  2. 在另一个文本编辑器中打开 C:\Windows\System32\inetsrv\config\applicationHost.config。这是活动的 IIS 数据。
  3. 将活动文件中的 <applicationPools><sites> 元素替换为原始文件中的元素
  4. 运行 iisreset 来自提升的命令提示符