Need to pull member's names and corresponding email addresses from distribution lists.
Distribution groups are Universal.
There are domain users and contacts listed in the each groups.
Previously, was able to use the following DSGET and DSQUERY command:
dsquery group -name "GROUP NAME"|dsget user -samid -email >c:\file.txt
Now I receive the following error when I run this on multiple distribution groups:
The object class of the target does not match the one specified on the command line.
type dsget /? for help.[PS] C:\Windows\system32>:
Any help would be appreciated.