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))
Is this for Exchange or AD?
I belive Import-RecipientDataProperty is a powershell function provided by Exchange.