Link to home
Start Free TrialLog in
Avatar of Michael Leonard
Michael LeonardFlag for United States of America

asked on

need a quest AD cmdlets script or powershell script to bulk delete distribution groups

can someone provide a Quest AD cmdlets or posh script that I can use to key on an input .csv file [with primary email address of each distribution group] and delete all in the csv?

many thanks!

S.
SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Leonard

ASKER

thanks Spec01, is there a way to run this without it prompting for each deletion?
Yeah just add the -confirm $false switch and that should do it.

remove-distributiongroup -identity $Group.SMTP -confirm $false
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks Subsun, that worked perfectly. as did yours Spec01.