Set SharePoint site to read-only
In some situations you may have a need to set a SharePoint site to read-only. In my case because we were moving the customer from WSS 3 to SharePoint 2013 and needed to reference the old data, while testing to confirm there were no issues with the new site. This can be done using the following command from the SharePoint bin folder:
stsadm -o setsitelock -url http://sharepointsite -lock readonly