Not sure if the summary makes sense so I'll post more here.
I have a DL (lets call it 'notifications'), I have been asked to get a breakdown of all users that are a part of 'notifications'. When I run get-distributiongroupmember I get a dozen or two DL's that are members, and then I have to run the same command for those, which in turn have other DL's and so on and so forth.
I need to be able to break down the entire thing (hopefully in the same excel tab)
Is this possible to do without having to run the command over and over and also be able to append the same csv?
Thanks in advance