Restarting or stopping IIS, or rebooting the Web server, is a server action. When restarting the Internet service, all sessions connected to the Web server (including Internet, FTP, SMTP, and NNTP) are dropped. Any data held in Web applications is lost. All Internet sites are unavailable until Internet services are restarted. For this reason, we should avoid restarting, stopping, or reboot the server if at all possible. IIS 6.0 includes application pool recycling and several other features that provide alternatives to restarting IIS. For a list of features designed to improve IIS reliability and remedy the need to restart IIS.
All of the Internet services listed below, if installed, are affected when restarting IIS
|IIS Admin service||This service manages all the services of IIS other than the WWW service (FTP, NMTP, and SMTP).|
|WWW service||This service provides Web connectivity between clients and Web sites.|
|HTTP SSL service||This service provides secure Web connectivity between clients and Web sites.|
|FTP service||This service provides FTP connectivity and administration through IIS Manager.|
|SMTP service||This service transports electronic mail across the network.|
|NNTP service||This service transports network news across the network.|
Internet Information Services (IIS) can be configured to periodically restart worker processes assigned to an application pool, which recycles faulty Web applications. Following example shows how to do it manually or using a batch file in a CRM environment.
runas /user:administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc E.g. reset the CRM application pool C:\Windows\System32\inetsrv\appcmd recycle apppool /apppool.name:CRMAppPool