Delete the Records Center Web Service Submitters for* groups using powershell

You need to run the following script on every Site Colelction

$spWeb = Get-SPWeb “http://Webapplication/Sitecollection”
$spGroups = $spWeb.SiteGroups

Write-Host “This site has” $spGroups.Count “groups”

$groups = $spGroups | ? {$_.Name -like “Records Center Web Service Submitters*”}
Write-Host “Found” $groups.Count “groups which will be deleted:”

ForEach($group in $groups) {
Write-Host “Deleting” $group.Name “…”
$spGroups.Remove($group.Name)
}

$spWeb.Dispose()

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s