Tuesday, November 13, 2012

Stop and Start SharePoint 2010 Services

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 starts 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.

@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



and the Start Script goes like:



@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


This can be done in powershell also: http://blogs.msdn.com/b/emberger/archive/2009/11/16/stop-and-go-with-sharepoint-2010-on-your-workstation.aspx

Later, I found a nice utility in Codeplex: SharePoint 2010 Service Manager at:http://sharepointserviceman.codeplex.com/
In addition to All SharePoint related services, this utility also provides option for disabling them on Start up.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...