Professional Documents
Culture Documents
Powershell Script For Photo Upload To Exchange 2010
Powershell Script For Photo Upload To Exchange 2010
d.
$PhotoPath = "d:\photos\*.*"
ForEach ($PhotoFile in gci $PhotoPath)
{
$User = '' + $PhotoFile.Name.substring(0, $PhotoFile.Name.Length - 4) + ''
Import-RecipientDataProperty -Identity $User -Picture -FileData ([Byte[]]$(Get-C
ontent -Path $PhotoFile.Fullname -Encoding Byte -ReadCount 0))
}