Remove-DistributionGroup with no confirmation
Hello,
I am trying to remove a distribution group using theRemove-DistributionGroup cmdlet and after I run the command it requests a confirmation from me. Is there any way to make the command proceed without waiting for confirmation?
[PS] C:\Documents and Settings>Remove-DistributionGroup -Identity testgroup01 Confirm Are you sure you want to perform this action? Removing Distribution Group "testgroup01" will remove the Windows group object. Yes Yes to All No [L] No to All Suspend [?] Help (default is "Y"):
Thanks.
October 10th, 2008 2:18pm
Hello,
Me again. I found the parameter to stop the cmdlet from requesting confirmation:
Code Snippet
Remove-DistributionGroup -Identity testgroup01 -confirm:$false
Thanks.
Free Windows Admin Tool Kit Click here and download it now
October 10th, 2008 2:38pm
Hi,
Thanks for your sharing.
Allen
October 14th, 2008 9:24am