Import group members those are inactive more than 30 days to a csv file and then send the updated list by email

Hello,
I am very new to powershell and I have been looking for a solution where I can list all the inactive members more than 30 days from  particular groups in AD, export the updated list to a csv file and send the file by email . . Can someone help me on
this?
thanks

Hi,
Take a look at Get-ADGroupMember, Get-ADUser, Export-Csv, and Send-MailMessage:
http://ss64.com/ps/get-adgroupmember.html
http://ss64.com/ps/get-aduser.html
http://ss64.com/ps/export-csv.html
http://ss64.com/ps/send-mailmessage.html
Let us know if you have any specific questions.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

Maybe you are looking for