[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2016
  • Last Modified:

Outlook 2010 Photos do not show up

I went through the procedure to add the photos to outlook but they don't seem to be showing up.  When I look in ADSIeditor at the user under properties the photo has a hex value so it is there.  Any ideas on why it wouldn't be showing up in Outlook and how I can fix it?  Running Exchange 2010 on a server 2008 R2 box, with outlook 2010 running on XP SP3 box.  Domain is a 2003 functional level domain and I ren the adprep /forest prep from the 2008 cd on the 2003 DC.

Thanks in advance,
Mike
0
WashREIT
Asked:
WashREIT
  • 8
  • 4
1 Solution
 
Chris PattersonCommented:
Did you perform the following three steps to enable the pictures?

1.A schema change
2.Loading the picture into Active Directory
3.Updating the Offline Address Book

If not they are outlined here in detail:

http://blogs.technet.com/b/exchange/archive/2010/03/10/3409495.aspx
0
 
WashREITAuthor Commented:
I updated the Schema and told it to replicate to the GAL.
I loaded the picture using the:
Import-RecipientDataProperty -Identity "Bharat Suneja" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\BharatSuneja.jpg" -Encoding Byte -ReadCount 0))

Command.
I verified that the picture attribute populated for the user using adsiedit tool.

I as i am not running outlook in cached mode.  I will try that but i can't see how it would fix the issue.
0
 
Chris PattersonCommented:
Make sure that the photots are availble from an AD standpoint.  Here is a powershell script that I use to upload photos into my AD for our Exchange users, see if this works for you.  You may have to change the path to the photos for your environment.

Here is the site i got the code from:

https://msmvps.com/blogs/andersonpatricio/archive/2010/01/06/adding-images-to-ad-users-using-a-uploadphoto-ps1-script.aspx

#
# Syntax:
# uploadphoto.ps1 <mailbox-name>
# uploadphoto.ps1 -all (It will load all jpg files from the default folder and upload to the users in AD
#


param([Switch]$all, [String]$UserName)

#Default Values. Change them based on your environment.
$DefaultPhotoPath = 'C:\Photos'

Function CheckPhoto(){
 Write-Warning "Validating file(s).."
 Write-Host "File exists... " -nonewline
 If (Test-Path $PhotoPath)
  {
  Write-Host "[OK]" -ForeGroundColor Green
  Write-host "Photo size... "  -nonewline
  $PhotoSize = Get-ChildItem $PhotoPath | select Length
  If ($PhotoSize.Length -le 10000) { Write-Host "[OK]" -ForeGroundColor Green } Else { Write-Host "[Fail]" -ForeGroundColor Red; exit }
  }
 Else
  {
  Write-Host "[Fail]" -ForeGroundColor Red
  Exit
  }
}

Function UploadAll(){
 ForEach ($TempFile in Get-ChildItem $DefaultPhotoPath | Where-Object { $_.Extension -eq ".jpg" } )
  {
   $TempUserName = $TempFile.Name.substring(0, $TempFile.Name.Length - 4)
   Write-Host $TempUserName -ForeGroundColor Yellow -NoNewLine
   Import-RecipientDataProperty -Identity $TempUserName -Picture -FileData ([Byte[]]$(Get-Content -path $TempFile.Fullname -Encoding Byte -ReadCount 0))
   Write-Host "[Done]" -ForeGroundColor Green
  }
}

If ( $all -eq $true)
 {
 Write-Warning " ## This action will upload all pictures of C:\Photos to the AD users."
 Write-Warning " ## All pictures must have the same name of the usernames"
 Write-Warning "Are you sure that you want upload all pictures to the users (Y/N)?"
 $Opt = Read-Host
 If ( $Opt -eq 'y' ) { UploadAll; } Else { Write-Host "No changes were made."; Exit }
 }
Else
 {
 $PhotoPath = $DefaultPhotoPaty + $UserName + '.jpg'
 CheckPhoto;
 If ( $AbortMission -eq '$true' ) { Write-Error "Please, review the errors and try again." } Else { Import-RecipientDataProperty -Identity $UserName -Picture -FileData ([Byte[]]$(Get-Content -path $PhotoPath -Encoding Byte -ReadCount 0)) }
 }

0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
WashREITAuthor Commented:
The script doesn't seem to work.  I changed the default folder to what i wanted and it failed on the File exists.  I then moved two users over to the c:\photos folder and it still failed on the file exists.  Not sure why its failing.
0
 
WashREITAuthor Commented:
I got the script from a different location and the script went through but the pictures didn't appear.
0
 
Chris PattersonCommented:
Has this ever worked or is this a new change?  
0
 
WashREITAuthor Commented:
In addition i ran the picture manager script found here:
http://www.mikepfeiffer.net/2010/05/manage-exchange-2010-thumbnail-photos-with-a-powershell-based-gui/

When I pick the user and choose view current photo it shows me the picture.  It's just not updating the GAL for some reason...
0
 
WashREITAuthor Commented:
We just upgraded to Exchange 2010 so this is all new.
0
 
Chris PattersonCommented:
Can you try removing the values from AD and re-run the scripts?
0
 
WashREITAuthor Commented:
I removed it and reran it with the same outcome.  It shows up as hex in adsiedit and in the picture manager script it sees it as on the account but it's not showing up in the GAL.
0
 
WashREITAuthor Commented:
Did some more research and it seems it may be because we are running 2010 SP1 base.  According to a couple articles I found we need to install Rollup 2 at least for it to work.  I will get it installed and give you an update.
0
 
WashREITAuthor Commented:
Updating to rollup 3 resolved the issue.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now