Friday, January 28, 2011

Command To Start and Stop Windows Services For SharePoint

If you like me who prefer Windows 7 x64 as your SharePoint 2010 development environment, most probably the following batch files would be useful to start and stop Windows Services for SharePoint when required:

Start Windows Services For SharePoint

REM Start SharePoint 2010 Services : http://sharepointmalaya.blogspot.com

Echo Starting Services Required To Run SharePoint 2010

NET START MSSQL$SHAREPOINT
NET START IISADMIN
NET START W3SVC
NET START SPAdminV4
NET START SPTimerV4
NET START SPTraceV4
NET START SPUserCodeV4
NET START SPWriterV4
NET START OSearch14

pause

Stop Windows Services For SharePoint

REM Stop SharePoint 2010 Services : http://sharepointmalaya.blogspot.com

Echo Stoping Services Required To Run SharePoint 2010

NET STOP OSearch14
NET STOP SPWriterV4
NET STOP SPUserCodeV4
NET STOP SPTraceV4
NET STOP SPTimerV4
NET STOP SPAdminV4
NET STOP W3SVC
NET STOP IISADMIN
NET STOP MSSQL$SHAREPOINT

pause

No comments: