$photo = [
byte
[]](Get-Content
"C:\temp\crusoe.jpg"
-Encoding
)
Set-ADUser Crusoe -Replace @{thumbnailPhoto=$photo}
Set-ADUser Crusoe -Replace @{thumbnailPhoto=([
))}
Version 4. Added code formatting. Any idea why the code formatting (the border) gets lost when you edit a wiki article from IE? It seems to loose a styles directly applied to it.