$photo = [byte[]](Get-Content C:\test3.jpg -Encoding byte)

Set-ADUser TestUser1 -Replace @{thumbnailPhoto=$photo}

 

TestUser1 변경할 사용자의 cn

 

C:\test3.jpg 변경할 사진의 경로

(사진이 AD서버에 있어야함.)

 

삭제 Shell

set-ADUser "username" -clear thumbnailphoto


+ Recent posts