This nifty little application generates a batch file that, when run, will set the LOCK state of a chosen Site Collection and sub sites to either NoAdditions or Readonly or NoAccess
Usage: -a || -d || -w || -x || -y || -z ||
Operations and Parameters:
-a Create file for ALL sites within the chosen collection
-d Create file for sites within the chosen collection that have been modified in the last day.
-w Create file for sites within the chosen collection that have been modified in the last week.
-n Lock State is None
-x Lock State is NoAdditions
-y Lock State is ReadOnly
-z Lock State is NoAccess
-u URL of the Site Collection whose subsites you want to lockdown
Note. If you want to exclude certain sites from being touched, just include the url in a file called EXCLUSIONS.TXT stored in the same directory. For example, if the site collection includes http://teamsite/geoffsite and you wish to ignore it, then put that
in the Exclusions.txt file.
GEMySiteLockDown -a -y -u http://mysite
GEMySiteLockDown -d -f -u http://geintranet
Full information on how to use this utility is located at on my blog at:
Am trying to build a great bunch of tools for Sharepoint automation - if you like this tool please donate something - it all goes to keeping me toiling away on those apps and makes me feel its all worthwhile! Please donate by going here:
and clicking the DONATE button - thanks!
Geoff Evelyn, http://sharepointgeoff.com