Apply locks to a site collection & prevent users from updating content or temporarily prevent users from accessing the site collection (temporary).
To lock or unlock a site collection by using Central Administration
- Verify that you have the following administrative credentials.
- You must be a member of the Site Collection Administrators group for the site collection.
- You must be a member of the Site Collection Administrators group for the site collection.
- In Central Administration, click Application Management.
- On the Application Management page, in the Site Collections section, click Configure quotas and locks.
- If the site collection you want isn't 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.
- 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.
- No access to prevent users from accessing the site collection and its content. Users who attempt to access the site receive an error.
- Not locked to unlock the site collection and make it available to users.
- 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.
- Click OK.
To lock or unlock a site collection by using Windows PowerShell
- Verify that you meet the following minimum requirements: See
- On the Start menu, click All Programs.
- Click Microsoft SharePoint 2010 Products.
- Click SharePoint 2010 Management Shell.
- At the Windows PowerShell command prompt, type the following command:
Where:Set-SPSite -Identity "<SiteCollection>" -LockState "<State>"
- <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.
- Unlock to unlock the site collection and make it available to users.
- <SiteCollection> is the URL of the site collection that you want to lock or unlock.

No comments:
Post a Comment