Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

Manage the lock status for site collections in SharePoint 2013

Published: July 16, 2012

Summary: How to manage lock status for a site collection in SharePoint 2013.

Applies to:  SharePoint Foundation 2013 | SharePoint Server 2013 

You use the lock status of a site collection to control the actions allowed on a site collection. The lock states are Not locked, Adding content prevented, Read-only, and No access.

The following table describes the locking options that are available in SharePoint 2013.

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. When a user attempts to add, update, or delete content, the user receives an error message that informs the user that access is denied and that the user does not have permission to perform the action or access the resource. A read-only lock can be either be site collection administrator controlled if the site collection is archived or farm administrator controlled

No access

Prevents users from accessing the site collection and its content. Users who attempt to access the site receive an error page that informs the user that the website declined to show the webpage.

note Note:

If you want to limit the amount of content that can be stored in a site collection, you can apply a quota template to the site collection. When the content storage limit that is specified in the quota template is reached, the site collection is locked automatically until the storage limit quota has been increased or some content has been removed. For more information, see Create, edit, and delete quota templates in SharePoint 2013.

Important Important:

The steps in this article apply to both SharePoint Foundation 2013 and SharePoint Server 2013.

Manage the lock status for a site collection by using Central Administration

Use this procedure to lock or unlock a site collection by using Central Administration.

To manage the lock status for 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. Start SharePoint 2013 Central Administration.

    • For Windows Server 2008 R2:

      • Click Start, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Central Administration.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Central Administration.

        If SharePoint 2013 Central Administration is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Central Administration.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. In Central Administration, on the Application Management page, in the Site Collections section, click Configure quotas and locks.

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

  5. On the Site Collection Quotas and Locks page, in the Site Lock Information section, 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. Choose whether you want this to be farm administrator controlled or site collection administrator controlled.

    • No access to prevent users from accessing the site collection and its content. Users who attempt to access the site receive an error 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.

Manage the lock status for a site collection by using Windows PowerShell

Use this procedure to lock or unlock a site collection by using Windows PowerShell.

To manage the lock status for 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 2013 Products.

  4. Click SharePoint 2013 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command, and then press ENTER:

    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 users from accessing the site collection and its content. Users who attempt to access the site receive an error message.

note Note:

For more information about how to use the Set-SPSite cmdlet, see Set-SPSite.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.