Set-ADPhoto
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7REWxXOfdWueUsgvsypIl47fnksyC8p0Xx7QKfYK9YJeQemQIwWPx_0NUviAr54Bd6U6NK4It7SZ-Wommhs7VMxP6kFBNydkwAWXGgL74QQl6EHJsQJC-57RLfIjV5CTpJT6spJI6Oew/s640/Set-ADPhoto.png)
Set-ADPhoto Set Active Directory Photo for Users By Michael J. Thomas I have been very busy lately, so I'm going to keep this one simple. How to set a photo for active directory user with PowerShell. The more built out version will be posted at a later time. function Set-ADPhoto { [ CmdletBinding ()] param( [ string ] $UserName , [ string ] $File ) $Photo =[ System.IO.File ]::ReadAllBytes( $File ) Set-ADUser $UserName -Replace @{thumbnailphoto= $Photo } }