IIS service is invalid after windows upgrade IIS-W3SVC-WP cannot read configuration file

Open a Windows PowerShell window by using the Run as administrator option.
Run the following commands: 
Stop-Service -Force WAS
Remove-Item -Recurse -Force C:\inetpub\temp\appPools\*
Start-Service W3SVC
If the second execution fails, manually open the C:\inetpub\temp\appPools\ file Folder Empty

Original:
https://support.microsoft.com/en-us/help/4050891/error-http-503-and-was-event-5189-from-web-applications-on-windows-10

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326079549&siteId=291194637