Active directory 从Active Directory到Google应用程序的缩略图照片

Active directory 从Active Directory到Google应用程序的缩略图照片,active-directory,google-apps,Active Directory,Google Apps,我已将Active Directory中的每个人的照片设置为属性thumbnailPhoto。我如何将其同步到他们的谷歌个人资料?我目前正在使用GADS,但找不到任何操作说明。GAM可以设置个人资料照片: 您需要编写一个脚本,将用户的广告照片提取到一个文件中,然后通过GAM命令将其上传到Google Jay可以设置个人资料照片: 您需要编写一个脚本,将用户的广告照片提取到一个文件中,然后通过GAM命令将其上传到Google Jay这个脚本适合我 Get-ADUser -Filter * -P

我已将Active Directory中的每个人的照片设置为属性
thumbnailPhoto
。我如何将其同步到他们的谷歌个人资料?我目前正在使用GADS,但找不到任何操作说明。

GAM可以设置个人资料照片:

您需要编写一个脚本,将用户的广告照片提取到一个文件中,然后通过GAM命令将其上传到Google


Jay可以设置个人资料照片:

您需要编写一个脚本,将用户的广告照片提取到一个文件中,然后通过GAM命令将其上传到Google


Jay

这个脚本适合我

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

这个脚本对我有用

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

迫不及待地尝试此操作。请确保编辑我的脚本中的目录以反映服务器的文件位置并正确安装GAM。迫不及待地尝试此操作。请确保编辑我的脚本中的目录以反映服务器的文件位置并正确安装GAM。