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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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??
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*")
DLs with ABC in the names
get-distributiongroup | ? ($_.name -like "*ABC*")
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> 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
ASKER
thanks
PS the command above should be run from the Exchange Management Shell, or any shell with the Exchange CmdLets loaded.
Chris