izdaleka_nekta (izdaleka_nekta) wrote,
izdaleka_nekta
izdaleka_nekta

Добавление фотографии к доменной учётке

import-module ActiveDirectory

$photo = [byte[]](Get-Content C:\temp\photo.jpg -Encoding byte)
Set-ADUser samaccountname -Replace @{thumbnailPhoto=$photo}
Set-ADUser samaccountname -Replace @{jpegPhoto=$photo}
Tags: exchange, powershell
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments