Remove all distribution mail groups

If we want to remove all mail distribution groups, how can we do that?  I think this looks working,  Get-DistributionGroup | Remove-DistributionGroup , when I execute this cmdlet , it returns “Confirm” message to verify it. Confirm

What about this cmdlet?  Get-DistributionGroup | Remove-DistributionGroup -Confirm:$true  , but this cmdlet works same to ask “Confirm” message    , but if  we make  Get-DistributionGroup | Remove-DistributionGroup -Confirm:$false  , it deletes all distribution groups which I have,

Normally if we use Remove-DistributionGroup cmdlet, it requires Identity parameter  , and if we try to remove multi users , we are making csv file to set column to UserPrincipalName to extract each rows, but in this case also require Identity parameter, I wanted to make remove all mail distribution groups without Identity paramemter.   What is meaning of “Confirm” parameter  , Confirm parameter is Optional , whether to show or hide the confirmation prompt.    -Confirm:$false : You can skip the confirmation prompt by using this exact syntact ,

https://technet.microsoft.com/en-us/library/aa997627(v=exchg.160).aspx

Advertisements

글쓴이: hongwoo jin

I'm managing our Korea company's Office 365 administrator I want to be MS Office 365 & SharePoint MVP with certification.

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Google+ photo

Google+의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

%s에 연결하는 중