Skip to content

Instantly share code, notes, and snippets.

@gioxx
Created September 19, 2014 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gioxx/d38e3a7d327ddd99b905 to your computer and use it in GitHub Desktop.
Save gioxx/d38e3a7d327ddd99b905 to your computer and use it in GitHub Desktop.
Le 3 righe di codice qui di seguito servono per rimuovere tutti gli appartenenti ad un gruppo di distribuzione posta su Exchange / Office365 tramite Powershell
$gruppo = "gruppo@domain.onmicrosoft.com";
$utenti = Get-DistributionGroupMember -identity $gruppo;
$utenti | foreach { Remove-DistributionGroupMember -identity $gruppo -Member $_.DistinguishedName -Confirm:$False }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment