Michael Leonard
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.
many thanks!
S.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah just add the -confirm $false switch and that should do it.
remove-distributiongroup -identity $Group.SMTP -confirm $false
remove-distributiongroup -identity $Group.SMTP -confirm $false
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks Subsun, that worked perfectly. as did yours Spec01.
ASKER