Powershell脚本:使用sharepoint活动目录创建用户配置文件同步服务



在sharepoint 2013中,我必须通过脚本使用sharepoint活动目录创建用户配置文件同步连接。我已经使用powershell创建了用户配置文件服务,之后有没有办法在配置同步设置中选择在同步选项中选择使用SharePoint Active Directory ?之后,我必须使用脚本创建同步连接。

我有sharepoint 2010的脚本,但我找不到sharepoint 2013的脚本。如果有人以前尝试过,请帮助我

谢谢


thanks选择了那个选项working fine..但是之后就不能创建连接了这是我用来创建连接的代码

Add-SPProfileSyncConnection -ProfileServiceApplication 53eb09e7-4269-4e88-9109-ea29f603043a

-ConnectionForestName " abcde.com "

-ConnectionDomain "abcde"

-ConnectionUserName "username"

-ConnectionPassword "password" - as明文-force

-ConnectionSynchronizationOU"OU = abc, DC =中的,DC = com"

这个脚本给出以下错误

Add-SPProfileSyncConnection: Can not get to the proxy。请确认代理正在运行。在line:1 char:1+ Add-SPProfileSyncConnection+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo: InvalidData: (microsoft . office .eSyncConnection:[Add-SPProfileSyncConnection],参数化xception+ fulllyqualifiederror: Microsoft.Office.Server.UserProfiles.PowerShell。SPCmdletAddProfileSyncConnection

for -ConnectionSynchronizationOU我是否给出了正确的参数??你能帮我一下吗?

这是从我的博客在http://www.benjaminathawes.com/blog/Lists/Posts/Post.aspx?ID=42

$upa=Get-SPServiceApplication -Name "UserProfileServiceAppName"

upa美元。真正NoILMUsed = $

$ upa.Update ()

我还建议你看看Spence关于AD直接导入的文章:http://www.harbar.net/archive/2012/07/23/sp13adi.aspx

最新更新