我已将Active Directory中的每张照片都设置为属性thumbnailPhoto
。如何将其与Google个人资料同步?我目前正在使用GADS,但找不到任何指示。
答案 0 :(得分:2)
这个脚本对我有用。
Get-ADUser -Filter * -Properties thumbnailphoto, EmailAddress | where {$_.thumbnailphoto} | foreach {$_.thumbnailphoto | Set-Content -Path "C:\Downloads\ADPicture\Pictures\$($_.EmailAddress).jpg" -Encoding Byte}
C:\gam\gam.exe all users update photo C:\Downloads\ADPicture\Pictures\#user#.jpg
答案 1 :(得分:1)
GAM可以设置个人资料照片: https://github.com/jay0lee/GAM/wiki/ExamplesEmailSettings#user-profile-photos
您需要编写一个脚本,将用户的AD照片解压缩到文件中,然后通过GAM命令将其上传到Google。
杰