Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created February 20, 2014 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellwest/9115606 to your computer and use it in GitHub Desktop.
Save michaellwest/9115606 to your computer and use it in GitHub Desktop.
Update Active Directory thumbnail photo using PowerShell.
Import-Module ActiveDirectory
Set-ADUser -Identity "Michael.West" -Replace @{"thumbnailPhoto" = [byte[]](Get-Content -Path "michael.jpg" -Encoding Byte)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment