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))
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))
by
Tags:
Comments
2 responses to “Import Picture into AD with PowerShell”
Is this for Exchange or AD?
I belive Import-RecipientDataProperty is a powershell function provided by Exchange.