Get-MECMDeviceCollectionPrimaryEmailAddresses

Have you ever needed to send an email to all of the primary / last logged on / currently logged on user for every computer in a collection?  Here’s a nice little PowerShell script that can help you out with that.  Feel free to submit updates, issues, and requests in GitHub.

The latest code can be obtained from GitHub.  https://github.com/ChadSimmons/Scripts/blob/default/ConfigMgr/Document/Get-MECMDeviceCollectionPrimaryEmailAddresses.ps1

Here is a sample output on screen and in CSV.

CSV output