I am getting ready to perform a migration of SharePoint 2007 to 2010, and during the migration horus, i will want to prevent anyone form adding content anywhere, but yet I would like for people to read the content. Is there a way to make the sharepoint 2007 site read only?
Asked
Active
Viewed 9,908 times
4 Answers
5
Try:
stsadm -o setsitelock -url http://server_name -lock noaccess
That will help you set the site collection to read-only

SandBox
- 165
- 2
- 11
-
That command will actually stop ALL access to the site. To make it properly read-only, change the last parameter to `readonly` (i.e. `stsadm -o setsitelock -url http://server_name -lock readonly`) – Captain Toad Feb 07 '18 at 15:18
4
Its very simple:
Central Administration > Application Management > Site Collection Quotas and Locks. Then choose 'Read Only'.

Ahmedur Rab
- 41
- 2
3
If you are performing a database attach upgrade, you could set the databases to read-only through SQL Management Studio. When SharePoint databases are set to read-only, SharePoint will automatically security-trim all sites in those databases to only allow for viewing the content.

JohnXO
- 46
- 2
2
I'm not sure if there is a way to do it in the UI or through stsadm, but there is a readonly property of the SPSiteAdministration object.
SPSiteAdministration siteAdmin = new SPSiteAdministration(siteUrl/guid);
siteAdmin.ReadOnly = true;
siteAdmin.Dispose();

Chris
- 4,393
- 1
- 27
- 33