I need to get who the AD group is managed by, then I need to automate an email to that user or group with the member names of the AD group with general text like 'Please review" so they can review the AD group to ensure everyone in it is supposed to be in it.
When you post code or error messages or sample data or console output format it as code, please.
In the “Text” view you can use the code tags “PRE”, in the “Visual” view you can use the format template “Preformatted”. You can go back edit your post and fix the formatting - you don’t have to create a new one.
Thanks in advance.
Have you tried to search for it? There are literally thousand of examples for tasks like this even here on this forum or on the PowershellGallery for example.
You would need to get the email of the “managedby” account and a loop and the cmdlet Send-Mailmessage.