In SharePoint Online, you can use the below PowerShell to lock access to a site collection without deleting it.
Set-SPOSite https://melqassas.sharepoint.com/sites/DemoSites -lockstate NoAccess
See also Prevent access to site collection SharePoint Server 2019
817 questions
541 answers
405 comments
190k users
Related Activities
Most popular tags
deBUG.to Shortcuts
Categories