iisreset error on windows 10

Darren Guy picture Darren Guy · Oct 26, 2016 · Viewed 19.8k times · Source

I have recently upgraded my desktop from Windows 7 to Windows 10

However when I run iisrest from an administrator console, I am getting the following error:

Restart attempt failed. The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled.

I initially checked my services, and there is no longer the IIS Admin service. I then checked the windows features, and as per nearly every article on the web that discusses installing IIS, I have selected Internet Information Services.

I have checked and the web service has restarted, Is this a new feature of Windows10 that the IIS Admin service is no longer required. Is there an additional step that I need to do that will install the service

Or is this now an issue with IISReset and I can ignore the error.

I have also tested this on a freshly installed Windows 10 box, and running IISReset gives the same error, and once again have verified via Windows features that IIS is installed

I can access website locally with no problems either

Answer

Darren Guy picture Darren Guy · Nov 14, 2016

After @Zam recommended looking in the event log, and poking around a lot, the issue was that services "Net.Tcp Port Sharing Service", "Net.Tcp Listener Adapter" on my machine are disabled by default.

After starting these services, and changing the Startup Type to "Automatic (Delayed Start)", iisreset no longer gives me error