You can apply locks to prevent users from accessing a site collection. You might want to do this if a site collection has exceeded its storage limit. The site collection can remain locked until either the storage limit quota is increased or some content is removed.

The following table describes the locking options that are available in Microsoft SharePoint Server 2010.

 

Option Description
Not locked Unlocks the site collection and makes it available to users.
Adding content prevented Prevents users from adding new content to the site collection. Updates and deletions are still allowed.
Read-only (blocks additions, updates, and deletions) Prevents users from adding, updating, or deleting content.
No access Prevents access to content completely. Users who attempt to access the site receive an access-denied message

You might want to lock a site collection to prevent updates to the content, or perhaps to prevent all access to the site collection temporarily. You can also follow these steps to remove a lock for a site collection.

To lock or unlock a site collection by using Central Administration

  1. Verify that you have the following administrative credentials.
    • You must be a member of the Site Collection Administrators group for the site collection.
  2. In Central Administration, click Application Management.
  3. On the Application Management page, in the Site Collections section, click Configure quotas and locks. The Site Collection Quotas and Locks page opens.
  4. If you want to change the selected site collection, 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.
  5. On the Site Collection Quotas and Locks page, in the Site Lock Informationsection, select one of the following options:
    • Not locked: To unlock the site collection and make it available to users.
    • Adding content prevented: To prevent users from adding new content to the site collection. Updates and deletions are still allowed.
    • Read-only (blocks additions, updates, and deletions): To prevent users from adding, updating, or deleting content.
    • No access: To prevent access to content completely. Users who attempt to access the site receive an access-denied message.
  6. 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.
  7. Click OK.

To lock or unlock a site collection by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
  2. On the Start menu, click All Programs.
  3. Click Microsoft SharePoint 2010 Products.
  4. Click SharePoint 2010 Management Shell.
  5. At the Windows PowerShell 2.0 command prompt, type the following command:
    Set-SPSite -Identity "<SiteCollection>" -LockState "<State>"

    Where:

    • <SiteCollection> is the URL of the site collection that you want to lock or unlock.
    • <State>is one of the following values:
      • Unlock: To unlock the site collection and make it available to users.
      • NoAdditions: To prevent users from adding new content to the site collection. Updates and deletions are still allowed.
      • ReadOnly: To prevent users from adding, updating, or deleting content.
      • NoAccess: To prevent access to content completely. Users who attempt to access the site receive an access-denied message.Link on microsoft is at http://technet.microsoft.com/en-us/library/cc263238.aspx
Advertisements