惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
量子位
博客园_首页
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Forbes - Security
Forbes - Security
IT之家
IT之家
N
News and Events Feed by Topic
S
Security Affairs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Webroot Blog
Webroot Blog
Recorded Future
Recorded Future
L
LangChain Blog
Y
Y Combinator Blog
AI
AI
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Know Your Adversary
Know Your Adversary
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
L
Lohrmann on Cybersecurity
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google Online Security Blog
Google Online Security Blog
V2EX - 技术
V2EX - 技术
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
PCI Perspectives
PCI Perspectives
I
Intezer
T
Tenable Blog
G
Google Developers Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Troy Hunt's Blog
L
LINUX DO - 最新话题
云风的 BLOG
云风的 BLOG
C
CXSECURITY Database RSS Feed - CXSecurity.com
有赞技术团队
有赞技术团队
O
OpenAI News
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
S
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
Blog — PlanetScale
Blog — PlanetScale

博客园 - jv9

SharePoint 2013技巧分享系列 - 同步Exchange显示高清用户照片 SharePoint 2013常用开发工具分享 SharePoint 2013技巧分享系列 - 隐藏Blog和Apps左侧导航菜单 常用Git代码托管服务分享 Microsoft Client Development MVP 2013 - 2014 车祸 Windows 8实例教程系列 - 数据绑定高级实例 Windows 8实例教程系列 - 数据绑定基础实例 Windows 8应用实例解析 - WinRT下创建GIF动画(Flipflop) Windows 8实例教程系列 - 布局控制 Windows 8实例教程系列 - 自定义应用风格 轻松搭建Windows8云平台开发环境 对比Windows 8模拟器(Simulator)和Windows Phone仿真器(Emulator) Windows8/Silverlight/WPF/WP7/HTML5周学习导读(1月28日-2月3日) Windows 8应用开发书籍汇总 Silverlight动态设置WCF服务Endpoint 心境 Windows8/Silverlight/WPF/WP7/HTML5周学习导读(1月7日-1月14日) Windows8/Silverlight/WPF/WP7/HTML5周学习导读(1月1日-1月6日)
SharePoint 2013技巧分享系列 - Active Directory同步显示用户照片
jv9 · 2013-12-31 · via 博客园 - jv9

2013-12-31 05:06  jv9  阅读(2536)  评论()    收藏  举报

为了保持通讯信息的一致性,需要设置SharePoint,Exchange, Lync等信息同步更新显示,例如,员工头像信息。 本文介绍如何在SharePoint 2013中同步显示Active Directory活动目录用户头像信息。

首先在用户属性Picture中导入AD活动目录属性,进入“Central Administration” -〉“Manage Service Applications”-〉“User Profile Service Application” -〉“Manage User Properties” -〉“Picture”

点击“Edit”,编辑Picture属性,

添加thumbnailPhoto属性到Picture中,

添加成功后,该属性会显示如下:

点击“OK”,确认保存。

退出用户属性编辑页面,进入User Profile主页面“Central Administration” -〉“Manage Service Applications”-〉“User Profile Service Application”,

点击“Start Profile Synchronization”,同步AD活动目录用户配置信息。该步骤会根据用户的数量决定运行时间长短,需要耐心等待。

同步完成后,需要运行以下PowerShell命令更新用户信息:

Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation http://<YourServerName>/People

运行完成后,刷新用户配置页面,即可看到同步后的用户照片。

需要注意的是,如果用户照片仍旧无法在SharePoint中显示,需要查看AD的thumbnailPhoto属性是否为空。这里推荐一个免费工具可以快捷查看AD属性,ADExplorer

运行ADExplorer后,按照以下条件查找

点击查找结果,在主显示页面会显示AD属性thumbnailPhoto,如果有数字显示则不为空,否则为空。

如果需要添加用户照片到AD活动目录,可以在AD服务器上运行以下PS代码,在运行前,需要确认照片已经存在,

$userName = “kevinfan”
$filePath = “c:\temp\kevinf.jpg”
[byte[]]$img = Get-Content $filePath –encoding byte
Get-ADUser –filter {samaccountname –eq $userName} |
Set-ADUser –replace @{thumbnailphoto=$img}

欢迎留言分享你的SharePoint 2013开发和设置技巧。