locked
Exchange and Photo users RRS feed

  • Question

  • Hello. There is an Exchange  2013 tell me how to unload the list of users who do not have a photo? из определенной OU 
    Thursday, July 23, 2020 7:46 AM

Answers

  • Hi,

    Please try the below command,

    Get-Mailbox -ResultSize Unlimited | Foreach-Object { Get-UserPhoto -Identity $_.Identity | where {PictureDate -eq $null} | select DisplayName,PrimarySMTPAddress}

    References:

    Exchange 2013 User Picture Management

    Finding users with no Picture set in the user profile

    Get all users photo from Office 365 Mailboxes using Exchange PowerShell

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    Thanks,
    Ashok M My blog
    ________________________________________________________________
    Please mark the reply as an answer if you find it is helpful :-)
    ________________________________________________________________

    • Proposed as answer by Ashokm_14 Wednesday, July 29, 2020 9:56 AM
    • Marked as answer by PiligrimKa Wednesday, July 29, 2020 11:31 AM
    Thursday, July 23, 2020 8:48 AM
  • Hi PiligrimKa,

    You could run the follow command to get the users who not have a photo.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL }

    If there are too many users to display completely, you could also use the following command to export the user list to a CSV file.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL } | select Name,UserPrincipalName | Export-Csv "<>" -noTypeInformation

    Then if you want to delete users who not have a photo, you could according to the user's list to delete.

    This Exchange Server 2013 - Administration, Monitoring, and Performance Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

    Regards,

    Lucas Liu


    Exchange Server 2013 - Administration, Monitoring, and Performance forum will be migrating to a new home on Microsoft Q&A! We invite you to post new questions in the new forum.

    For more information, please refer to the sticky post.

    Friday, July 24, 2020 5:41 AM
  • Hi PiligrimKa,

    I’m pleased to know that the information is helpful to you.

    Here I will provide a brief summary of this post so that other forum members could easily find useful information here:

    Request:

    How to get the users who not have a photo.

    Solution Summary:

    We could run the follow command. The first command could display all users in the EMS. The second command could export all users to a specific CSV file.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL }
    
    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL } | select Name,UserPrincipalName | Export-Csv "<>" -noTypeInformation

    This Exchange Server 2013 - Administration, Monitoring, and Performance Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

    Regards,

    Lucas Liu


    Exchange Server 2013 - Administration, Monitoring, and Performance forum will be migrating to a new home on Microsoft Q&A! We invite you to post new questions in the new forum.

    For more information, please refer to the sticky post.

    • Marked as answer by PiligrimKa Monday, August 3, 2020 6:39 AM
    Thursday, July 30, 2020 8:38 AM

All replies

  • Hi,

    Please try the below command,

    Get-Mailbox -ResultSize Unlimited | Foreach-Object { Get-UserPhoto -Identity $_.Identity | where {PictureDate -eq $null} | select DisplayName,PrimarySMTPAddress}

    References:

    Exchange 2013 User Picture Management

    Finding users with no Picture set in the user profile

    Get all users photo from Office 365 Mailboxes using Exchange PowerShell

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    Thanks,
    Ashok M My blog
    ________________________________________________________________
    Please mark the reply as an answer if you find it is helpful :-)
    ________________________________________________________________

    • Proposed as answer by Ashokm_14 Wednesday, July 29, 2020 9:56 AM
    • Marked as answer by PiligrimKa Wednesday, July 29, 2020 11:31 AM
    Thursday, July 23, 2020 8:48 AM
  • Hi PiligrimKa,

    You could run the follow command to get the users who not have a photo.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL }

    If there are too many users to display completely, you could also use the following command to export the user list to a CSV file.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL } | select Name,UserPrincipalName | Export-Csv "<>" -noTypeInformation

    Then if you want to delete users who not have a photo, you could according to the user's list to delete.

    This Exchange Server 2013 - Administration, Monitoring, and Performance Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

    Regards,

    Lucas Liu


    Exchange Server 2013 - Administration, Monitoring, and Performance forum will be migrating to a new home on Microsoft Q&A! We invite you to post new questions in the new forum.

    For more information, please refer to the sticky post.

    Friday, July 24, 2020 5:41 AM
  • Hi PiligrimKa,

    Do suggestions above help? If you have any questions or needed further help on this issue, please feel free to post back. If the issue has been resolved, please mark the helpful replies as answers, this will make answer searching in the forum easier.

    Thanks for your understanding.

    This Exchange Server 2013 - Administration, Monitoring, and Performance Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

    Regards,

    Lucas Liu


    Exchange Server 2013 - Administration, Monitoring, and Performance forum will be migrating to a new home on Microsoft Q&A! We invite you to post new questions in the new forum.

    For more information, please refer to the sticky post.

    Wednesday, July 29, 2020 7:27 AM
  • Thanks a lot, it works!
    Wednesday, July 29, 2020 11:31 AM
  • Hi PiligrimKa,

    I’m pleased to know that the information is helpful to you.

    Here I will provide a brief summary of this post so that other forum members could easily find useful information here:

    Request:

    How to get the users who not have a photo.

    Solution Summary:

    We could run the follow command. The first command could display all users in the EMS. The second command could export all users to a specific CSV file.

    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL }
    
    GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL } | select Name,UserPrincipalName | Export-Csv "<>" -noTypeInformation

    This Exchange Server 2013 - Administration, Monitoring, and Performance Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

    Regards,

    Lucas Liu


    Exchange Server 2013 - Administration, Monitoring, and Performance forum will be migrating to a new home on Microsoft Q&A! We invite you to post new questions in the new forum.

    For more information, please refer to the sticky post.

    • Marked as answer by PiligrimKa Monday, August 3, 2020 6:39 AM
    Thursday, July 30, 2020 8:38 AM