Share via


Lock site collections (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2008-05-05

Lock site collections

An administrator can use Batch Site Manager to lock one or more site collections. Typically, you would perform a lock operation before you back up your site collections. The lock status setting controls this behavior. The following table shows the available options.

UI value Stsadm value Description

Not Locked

None

Sets the site collection to an unlock status. This is the default setting.

Adding Content Prevented

Noadditions

Prevents content from being added to a site collection while the lock operation is performed.

Read-only

Readonly

Blocks additions, updates, and deletions to the site collection.

No Access

Noaccess

Sets the site collection unavailable to users.

For additional information about the lock status of a site collection, see Getsitelock: Stsadm operation (Windows SharePoint Services) and Setsitelock: Stsadm operation (Windows SharePoint Services).

Task requirements

The following are required to perform the procedures for this task:

  • You must be a member of the Farm Administrators group within the SharePoint server farm.

For additional information about security roles, see Plan for security roles (Windows SharePoint Services).

To lock site collections

  1. On the SharePoint Central Administration Web page in the Batch Site Manager section, click Move, Lock, and Delete Site Collections.

  2. (Optional) On the Move, Lock, and Delete Multiple Site Collections page, a statistics aggregation timer job should be started and completed in order to make sure the status of a site collection is the latest, depending on how recently such a job was run.

  3. On the Move, Lock, and Delete Multiple Site Collections page, select one or more check boxes to indicate which site collection or collections you want to lock.

  4. Click Lock.

  5. On the Lock Multiple Site Collections page, in the Name and Description section, type a name and description (optional). This will be the name of the timer job that will perform the lock operation.

  6. In the Lock section, click the appropriate lock status.

  7. In the Lock Messages section, type an explanation for the lock, for example, “Locking database before backup”.

    Note

    This text is only displayed to the administrator. It is not displayed to users.

  8. In the Schedule Job section, click Now to run the timer job immediately, or Specified Time (in the format MM/DD/YYYY HH:MM) to indicate a time in the future. By default, the timer job runs immediately.

  9. In the Success/Failure Notification section, click the Send e-mail when site collection job succeeds or Send e-mail if site collection job fails check boxes if you want to receive notifications. To receive notifications, provide an e-mail address in the E-mail Address box.

    Note

    You can select both check boxes.

  10. Click OK.

Note

Site collections will not be locked until the aggregate timer job is run.