In order to export photos from your Active Directory execute below powershell script from your AD.
$employee=GET-ADuser –filter * -properties thumbnailphoto Foreach ($User in $employee) { $Directory='C:\Temp\' If ($User.thumbnailphoto) { $Filename=$Directory+$User.samaccountname+'.jpg' [System.Io.File]::WriteAllBytes($Filename, $User.Thumbnailphoto) } }