Thursday, November 18, 2010

Make Sharepoint Sites for ReadOnly Access during maintance mode

Hello Friends
We have requirement in which we need to make all SharePoint sites on maintained mode and do now allow users to modify anything.
They should go through pages but they should not add or modify any content on SharePoint sites.
How we can do that?
As we know command line tool of SharePoint STSADM is very powerful, we can use one of operation of Stsadm that is Setsitelock
Make one batch file and repeat the same coomand for all sharepoint sites which should go to the readonly access
stsadm -o setsitelock -url http://SharepointSiteURL -lock Readonly
For more information for setsitelock, refer this link.
Hope this helps!!!
Disha Shah

No comments:

Post a Comment