Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-PSSnapin Microsoft.SharePoint.PowerShell
- Get-SPSite -Limit All | ? { -not $_.IsReadLocked } | % {
- $_.RootWeb.RequestAccessEmail = $site.Owner.Email
- $_.RootWeb.RequestAccessEnabled = $true
- $_.RootWeb.Update()
- }
Add Comment
Please, Sign In to add comment