param( [Parameter(Mandatory=$true)] [string]$url ) Set-SPSite -Id $url -LockState ReadOnly