Created
September 19, 2014 15:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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