set site in Read Only mode - SharePoint 2013

Three ways by which you can do this- GUI way, command prompt way and DB.
GUI way is termed as Central Administration; command prompt is termed as PowerShell way and DB is termed as Database way.

By using Central Administration:
1)   In Central Administration
2)   Application Management page
3)   Site Collections section
4)   Configure quotas and locks.
5)   If the site collection you want is not already selected, in the Site Collection section, on the Site Collection menu, click Change Site Collection. Use the Select Site Collection page to select a site collection.
6)   On the Site Collection Quotas and Locks page, in the Site Lock Information section, select one of the following options:

a.   Not locked to unlock the site collection and make it available to users.
b.   Adding content prevented to prevent users from adding new content to the site collection. Updates and deletions are still allowed.
c.   Read-only (blocks additions, updates, and deletions) to prevent users from adding, updating, or deleting content. Choose whether you want this to be farm administrator controlled or site collection administrator controlled.
d.   No access to prevent users from accessing the site collection and its content. Users who attempt to access the site receive an error message.

7)   If you select Adding content prevented, Read-only (blocks additions, updates, and deletions), or No access, type a reason for the lock in the Additional lock information box.
8)   Click OK.

By using PowerShell way:

Set-SPSite -Identity "<SiteCollection>" -LockState "<State>"

1)   <SiteCollection> is the URL of the site collection that you want to lock or unlock.
2)   <State> is one of the following values:
3)   Unlock to unlock the site collection and make it available to users.
4)   NoAdditions to prevent users from adding new content to the site collection. Updates and deletions are still allowed.
5)   ReadOnly to prevent users from adding, updating, or deleting content.
6)   NoAccess to prevent users from accessing the site collection and its content. Users who attempt to access the site receive an error message.

By using Database way:

1)   SharePoint Central Administration
2)   Manage content databases
3)   Select the database that you want to set in Read-only mode
4)   Click on database status dropdown
5)   Select read-only
6)   Click OK.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

No comments:

Post a Comment

Your feedback is always appreciated!!!

Popular Posts