May 10 2018 01:07 AM
May 10 2018 01:07 AM
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!
May 10 2018 02:18 AM
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
May 10 2018 04:22 AM
HI Daniel,
Another one - how do I add filter to output - DisplayName, UserPrincipalName, Department, LastLogonTime and haspicture -eq $false
Thanks
May 10 2018 04:30 AM
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 }
May 10 2018 07:09 AM
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
May 10 2018 07:40 AM
May 10 2018 07:40 AM
May 10 2018 11:57 PM
May 10 2018 11:57 PM
HI Christopher,
How safe and secure is it to use Hyperfish as a Global Admin in your O365 Tenant?