Link to home
Start Free TrialLog in
Avatar of Wes Fields
Wes FieldsFlag for United States of America

asked on

Find Empty Distribution Groups and Email Results if they are empty - powershell

I have searched and searched and have only found 1 script online that I can't get to work correctly.  I need a powershell script that will find empty distribution groups and email the name of the empty distribution groups.

I only want the email to be sent if it finds a distribution group that is empty.

Wes
ASKER CERTIFIED SOLUTION
Avatar of Adam Brown
Adam Brown
Flag of United States of America 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 Wes Fields

ASKER

Just tested it on my exchange server and it works just as I asked.  Thank you so much!  I am still learning how to script with powershell but you have saved me tons of time.

Thanks!