全新安装的 IIS 10(Windows Server 2019)没有匿名身份验证

There is no Anonymous Authentication on fresh install IIS 10 (Windows Server 2019)

我刚刚在 Windows Server 2019(数据中心版)上全新安装了 IIS 10。然后,做了一个简单的localhost请求,确认一切都成功完成。我最终收到了 401 响应。

在 IIS 管理器中进一步检查,我发现 Anonymous Authentication 不存在。

如您所见,这与 Enabling/Configuring 无关,正如此处的回答:

问题是 没有 Anonymous Authentication 甚至可以配置或启用。

这里是另一个网络服务器的图片,具有完全相同的环境,我进行了完全相同的安装过程,其中 Anonymous Authentication 按预期出现。


那么,当 IIS 10 默认不是 installed/present 时,如何在 IIS 10 上“安装”Anonymous Authentication

好吧,我想尽了办法,还是没能解决。最后完全删除 IIS,然后重新安装它。

(重新)安装后问题立即得到解决,一切都完全正常。 Anonymous Authentication 显示在身份验证窗格中,请求已成功响应。

所以,我想我经历了一个损坏的 IIS10 安装,即使我不记得看到任何关于它的警告。


注 1:环境是 Azure VM,Windows 2019 Datacenter Edition,IIS10。
注2:第一次安装时,机器(VM)只有1GB内存。我不知道这是否会导致安装损坏。
注意 3:要在 Windows 2019 上卸载 IIS 10,很简单:打开 "Server Manager" -> 单击 "Manage" -> 单击 "Remove Roles and Features" -> 取消选中 "Web Server (IIS)" -> 然后只需按照向导操作...