Link to home
Start Free TrialLog in
Avatar of amku03
amku03

asked on

Pull Distribution list with specific word in the DL name

Exchange 2007 SP1 RU8

I need to pull / search all the Distribution list with a specific word say ABC in the DL name.
We have the DL name format as DL-NAM-NY-ABC Team

Looking for a powershell script to do this.
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland 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

PS the command above should be run from the Exchange Management Shell, or any shell with the Exchange CmdLets loaded.

Chris
Avatar of amku03
amku03

ASKER

Thanks, but I am aware of this.
I am looking to pull specific DLs with specific word in their names.

Like DL-NAM-NY-ABC Team1
DL-EUR-SW-ABC Team5

So I want to pull such DLS with ABC in their name...

Any suggestions??
get-distributiongroup | ? ($_.name -like "DL*")

Ok i should have refreshed sorry :)


DLs with ABC in the names

get-distributiongroup | ? ($_.name -like "*ABC*")
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

> I am looking to pull specific DLs with specific word in their names.

This is exactly what I gave you, what do you want beyond that?

Chris
Avatar of amku03

ASKER

thanks