Export user photos from your AD

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

 

 Windows  
 
Fully optimised SSD hosting

Optimised for WordPress & other applications