dism /online /norestart /add-package:%SystemRoot%\servicing\Packages\Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.16299.15.mum
Note: if the following question is displayed:
An error occurred while trying to open – C:: (Windows) serving packages (Microsoft Windows IIS webserver addon-2-package ~ 31bf3856ad364e35 ~ AMD64 ~ ~ 10.0.16299.15.mum) error: 0x80070002
This is generally caused by the Windows version and the number of digits. We can manually search its local files. The file path is:
C: Then search for the file: microsoft-windows-iis-webserver-addon-2-package, as shown in the following figure:
Draw a red box, copy down the file name, and then paste it into the command box, pay attention to add. Mum file suffix, and then enter. As shown in the figure below:
This shows that the operation has been successful. Then open IIS to see if you have windows authentication. I tried it myself and succeeded.
PS: if IIS does not have windows authentication, please try other mum files in Figure 1 of this article.