When you open the Exchange Management Shell, this error can appear :
It means that the w3svc service is stopped.
Fix :
Just open “services.msc” and start the “World Wide Web Publishing Service”
Now, you can open the Management Shell without error.