Partager via


Getting error when using IISReset /NOFORCE use net stop start instead...

When you use IISReset command with /NOFORCE switch you are saying that do not forcefully terminate Internet services if attempting to stop them gracefully fails. This is useful, as it help prevent data loss in case the IIS services cannot be stopped within the one minute time-out period. But if you have set up Exchange server along with SharePoint websites you might run into errors using /NOFORCE switch.

E.g.

There was an error while performing this operation.
Details:
The service cannot accept control messages at this time. (Exception from HRESULT: 0x80070425)

There was an error while performing this operation.
Details:
The service cannot accept control messages at this time. (Exception from HRESULT: 0x2147943461)

Why does this happen?

This happens because; NOFORCE switch fails to stop the IIS services in a timely fashion. This issue occurs in situations where we have more than 5 services dependent on IISAdmin service.

It is recommended to use net stop w3svc and net start w3svc commands to do a complete IISReset. This ensures that you only restart IIS services and not other services such as Exchange Services, SharePoint Services that are dependent on IISAdmin. Net start stop will work in the same way even if the number of services dependent on IISAdmin service increases.

Hope this helped you in some way

Comments