Import Picture into AD with PowerShell

I know this is everywhere, so this is more a note for myself. How to upload pictures to AD via PowerShell:

Import-RecipientDataProperty -Identity username -Picture -FileData ([Byte[]]$(Get-Content -Path .\username.jpeg -Encoding Byte -ReadCount 0))

,

2 Responses to Import Picture into AD with PowerShell

  1. Joe April 7, 2013 at 11:34 pm #

    Is this for Exchange or AD?

  2. jbmurphy April 18, 2013 at 3:54 pm #

    I belive Import-RecipientDataProperty is a powershell function provided by Exchange.