Set a site in read-only mode in SharePoint 2007 – 2010

During migration of a site it can be useful to set the site in read-only or no-access mode, so users can’t change anything during migration. It can be done with “setsitelock”. Some examples:

stsadm -o setsitelock -url http://mysite -lock readonly

stsadm -o setsitelock -url http://mysite -lock none

stsadm -o setsitelock -url http://mysite -lock noaccess

stsadm -o getsitelock -url http://mysite

However, I have seen situations where stsadm -export will fail with permission errors when the site is in readonly mode.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: