Remove multiple SharePoint groups listed in *csv file using Powershell

    if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null) { Write-Host “Connect SharePoint Cmd-Let” Add-PSSnapin Microsoft.SharePoint.PowerShell } $sp = Get-SPSite ” https://mysharepoint ” $spWeb = $sp.RootWeb $csvlocation = “c:\csv\groupsDeleteList.csv” $values = Import-Csv $($csvlocation) -Delimiter “;”     $values | ForEach-Object {     if($_.group -eq $spWeb.SiteGroups[$_.group]) { $spWeb.SiteGroups.Remove($_.group) $spWeb.Update() Write-Host “Group “$_.group” Deleted!” } else… Continue reading Remove multiple SharePoint groups listed in *csv file using Powershell