Profile pictures in O365

Deleted
Not applicable

HI there,

 

I have users with and some without profile pictures in O365 - please assist with a script or tool to extract a list of users "without" profile pictures in O365?

 

Please,please

Thank you!

8 Replies

Hi @Deleted,

 

Take a look at this link: https://www.jijitechnologies.com/blogs/how-to-download-office365-user-profile-photo. With a little modification (adding an else-statement) you will be able to get all people who don't have a user profile picture.

 

Kind regards,

Daniel

HI Daniel,

 

Another one - how do I add filter to output - DisplayName, UserPrincipalName, Department, LastLogonTime and haspicture -eq $false

 

Thanks

You can add properties to the select:

 

$allUsers = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | select UserPrincipalName, Alias, DisplayName, Department, LastLogonTime

 For the haspicture -eq $false you can add the else part of the if/else statement:

 

If($photo.PictureData -ne $null) {
[io.file]::WriteAllBytes($path,$photo.PictureData) Write-Host $user.Alias “profile picture downloaded” } Else { # Insert your logic here }

Hi Derrick,

 

To manage user photos in Office 365, you can use CodeTwo User Photos for Office 365 freeware: https://www.codetwo.com/freeware/user-photos-for-office-365/.

 

All the best,

Adam

Hyperfish also has a free tool for doing just photos. Their entire profile package is a nice upgrade option as well.

Thank you, Sir!

Good one to test for future use...Thank you!

HI Christopher,

 

How safe and secure is it to use Hyperfish as a Global Admin in your O365 Tenant?