Need help on this one. I need to get a report of all the users in our org who doesn't have an HD photo ? The photos are stored on Exchange 2013 mailboxes ?
And i am able to retrieve the photos using the below script for a single user ? Need further help to get this done in bulk for entire organization with the following results.
The idea is as follows
Once i have the excel sheet with user email address corresponding image name and the file size i will classify the photos based on its size as HD or not. As i have confirmed low resolution photos are very low in size compared to HD photos ( obviously)
Your prompt help is much appreciated.
$user = Get-UserPhoto email@example.com
# I guess we can use this cmdlet to sort file sizes of the photos once its exported
$file = 'D:\sample.xls'
Can someone help me with this ?
See if the info assists you in your use case.
Thanks for the share.. In the given article we have the last part useful to get the size and path to export into an excel sheet.
As i am a noob in scripting I need your help in combining the script i provided.
When I run this below script I face the following challenges which i need your help
1.) To use an input excel sheet with user email address taken as input after Get-userphoto
$picMetadata = Get-FileMetaData -folder (Get-childitem E:\pics -Recurse -Directory).FullName
Your help is much appreciated..
update , found this cmdlet "Rename-Item" to rename files , this should solve the second part of renaming the photo to email address.
You must be logged in to reply to this topic.