Avatar of siber1
siber1 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.
PowershellActive DirectoryExchange

Avatar of undefined
Last Comment
siber1

8/22/2022 - Mon
SOLUTION
Will Szymkowski

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
siber1

thanks Spec01, is there a way to run this without it prompting for each deletion?
Will Szymkowski

Yeah just add the -confirm $false switch and that should do it.

remove-distributiongroup -identity $Group.SMTP -confirm $false
ASKER CERTIFIED SOLUTION
Subash Sundharan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
siber1

thanks Subsun, that worked perfectly. as did yours Spec01.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy