Living on the Windows Side of Life

The Daily Grind of a SysAdmin/Developer

Exchange 2010 Photos in the GAL – The Cmdlet

Posted by bluescreened on 13 July , 2010

So I said that I would post the cmdlet that you needed to update the photo into the GAL for Exchange 2010, well, who am I to dissapoint, here it is:

Import-RecipientDataProperty -Identity "Joe Bloggs" -Picture -FileData
([Byte[]]$(Get-Content -Path "C:\Wherever\JoeBloggs.jpg" -Encoding Byte
-ReadCount 0))
Bear in mind - it is all one command line, the line breaks I have put in make it look nice on the page :-) 
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.