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.
PowershellActive DirectoryExchange

Avatar of undefined
Last Comment
Michael Leonard
SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
Avatar of SubSun
SubSun
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Michael Leonard

ASKER

thanks Subsun, that worked perfectly. as did yours Spec01.
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo