locked
Exchange and Photo users RRS feed

  • Вопрос

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

Ответы

  • 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 :-)
    ________________________________________________________________

    • Предложено в качестве ответа Ashokm_14 29 июля 2020 г. 9:56
    • Помечено в качестве ответа PiligrimKa 29 июля 2020 г. 11:31
    23 июля 2020 г. 8:48
  • 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.

    24 июля 2020 г. 5:41
  • 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.

    • Помечено в качестве ответа PiligrimKa 3 августа 2020 г. 6:39
    30 июля 2020 г. 8:38

Все ответы

  • 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 :-)
    ________________________________________________________________

    • Предложено в качестве ответа Ashokm_14 29 июля 2020 г. 9:56
    • Помечено в качестве ответа PiligrimKa 29 июля 2020 г. 11:31
    23 июля 2020 г. 8:48
  • 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.

    24 июля 2020 г. 5:41
  • 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.

    29 июля 2020 г. 7:27
  • Thanks a lot, it works!
    29 июля 2020 г. 11:31
  • 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.

    • Помечено в качестве ответа PiligrimKa 3 августа 2020 г. 6:39
    30 июля 2020 г. 8:38