I am working on what I thought would be a simple script to grab a few items from a Security or Distribution group in AD and email the "manager" for verification of its members. I have come up with the following and am apparently missing something the concatenation of the information. I can pull what I need just fine to compose my email but can't seem to get my message body and the members of the list together. The email comes through fine, but without the list. What am I missing?!? I have included the code for everything but the email sending as it works.
TIA.
$mgr= (get-qadgroup $list).directoryentry.managedby | get-qaduser | select name, email = get-qadgroupmember $list | select Name = "The following people are currently members of [$list] that you are currently listed as the manager.`
$message
= $message + $members
$list = "QA Mailing List"
$members
$message = "Please check the list to make sure that all members are current. If anyone is missing, please contact the MIS department to have them added."