Skip to content

Instantly share code, notes, and snippets.

@iamsilvio
Created January 14, 2013 11:43
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 iamsilvio/4529535 to your computer and use it in GitHub Desktop.
Save iamsilvio/4529535 to your computer and use it in GitHub Desktop.
add a thumbnail Photo to a AD User
$photo = [byte[]](Get-Content d:\port300.png -Encoding byte)
Set-ADUser SAMACCOUNTNAME -Replace @{thumbnailPhoto=$photo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment