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))

Posted

in

,

by

Comments

2 responses to “Import Picture into AD with PowerShell”

  1. Joe Avatar

    Is this for Exchange or AD?

  2. jbmurphy Avatar

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