原文:http://sujant.wordpress.com/2008/04/03/sharepoint-restarting-services-and-iis-using-wss-3-0-or-moss-2007/

SharePoint: Restarting Services and IIS using WSS 3.0 or MOSS 2007

Our team has been using the following script to restart services on the front end servers. Sometimes restarting just IIS does not fix issues related to update GAC or features/solutions.

@echo on

net stop "Windows SharePoint Services Administration"

net start "Windows SharePoint Services Administration"

:: net stop "Windows SharePoint Services Search"

:: net start "Windows SharePoint Services Search"

net stop "Windows SharePoint Services Timer"

net start "Windows SharePoint Services Timer"

net stop "Windows SharePoint Services Tracing"

net start "Windows SharePoint Services Tracing"

:: net stop "Windows SharePoint Services VSS Writer"

:: net start "Windows SharePoint Services VSS Writer"

IISRESET /restart