批量导出AD中用户头像

       AD51

        ADthumbnailphoto100K96

  cn: Picture
 ldapDisplayName: thumbnailPhoto
 attributeId: 2.16.840.1.113730.3.1.35
 attributeSyntax: 2.5.5.10
 omSyntax: 4
 isSingleValued: TRUE
 schemaIdGuid: 8d3bca50-1d7e-11d0-a081-00aa006c33ed
 systemOnly: FALSE
 searchFlags: 0
 rangeLower: 0
 rangeUpper: 102400 attributeSecurityGuid: 77b5b886-944a-11d1-aebd-0000f80367c1

        AD100KAD10MAD100AD

        C:\Photos2

        PS

$list=GETADuser filter * properties thumbnailphoto

Foreach ($User in $list)

{

$Directory=C:\Photos\

If ($User.thumbnailphoto)

    {

    $Filename=$Directory+$User.samaccountname+.jpg

    [System.Io.File]::WriteAllBytes($Filename, $User.Thumbnailphoto)

    }

}

        

3

        

4

        

       Exchange10Exchange2016“http://edu.exchangecn.com/course/12″购买。

 

发布于: 浏览:6771 次

还没有评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据