In my Laptop with Windows 7, I’ve SharePoint 2010 Installed for my tryouts. I use it whenever I’m out of network connectivity.
Problem is: Not quite frequently I use SharePoint from my laptop, but SharePoint services start automatically when I turn on my laptop and eating up my resources especially RAM. (SharePoint is resource hungry! Huh.)
What I want is: Stop all SharePoint services and start only whenever I require them. I used run a batch file (or we can go to Services console) to stop SharePoint, SQL Server and IIS Services. Here is my batch file.
Stop SharePoint services
@echo stopping SharePoint 2010 services REM SharePoint 2010 Administration net stop SPAdminV4 REM SharePoint 2010 Timer net stop SPTimerV4 REM SharePoint 2010 Tracing net stop SPTraceV4 REM SharePoint 2010 VSS Writer net stop SPWriterV4 REM SharePoint Server Search 14 net stop OSearch14 REM SharePoint Foundation Search V4 net stop SPSearch4 REM SharePoint 2010 User Code Host net stop SPUserCodeV4 REM IIS iisreset /stop /noforce REM World wide Publishing net stop w3svc REM SMTP service net stop smtpsvc REM SQL Server net stop MSSQLSERVER @pause
Start SharePoint Services:
@echo starting SharePoint 2010 services REM SharePoint 2010 Administration net start SPAdminV4 REM SharePoint 2010 Timer net start SPTimerV4 REM SharePoint 2010 Tracing net start SPTraceV4 REM SharePoint 2010 VSS Writer net start SPWriterV4 REM SharePoint Server Search 14 net start OSearch14 REM SharePoint Foundation Search V4 net start SPSearch4 REM SharePoint 2010 User Code Host net start SPUserCodeV4 REM IIS iisreset /start REM World wide Publishing net start w3svc REM SMTP service net start smtpsvc REM SQL Server net start MSSQLSERVER @pause
SharePoint 2013 services can be stopped and started using PowerShell also: How to Stop and Start All SharePoint 2013 Services using PowerShell?
Later, I found a nice utility in Codeplex (https://sharepointserviceman.codeplex.com/) to do the same: SharePoint 2010 Service Manager You can download it below:
In addition to All SharePoint related services, this utility also provides an option for disabling them on Start up.