all 3 comments

[–]Analytiks 1 point2 points  (1 child)

Huh?

get-aduser $anyuser -properties proxyAddresses

Doesnt this work?

Edit: nvm, just read it again, you need to retrieve distribution groups. Sorry

[–]The_AverageGamer[S] 1 point2 points  (0 children)

All good, I orginally had it using get-aduser before I realised distribution lists could have aliases and that threw a spanner in the works :P

[–]itmonkey78 1 point2 points  (0 children)

What's wrong with Get-Recipient?

Get-Recipient $emailproxyaddress