0

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

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

谢谢你


感谢选择该选项工作正常.. 但之后我无法创建连接这是我用来创建连接的代码

添加-SPProfileSyncConnection-ProfileServiceApplication 53eb09e7-4269-4e88-9109-ea29f603043a

-ConnectionForestName "abcde.com"

-连接域“abcde”

-ConnectionUserName "用户名"

-ConnectionPassword “密码” -asplaintext -force

-ConnectionSynchronizationOU "OU=abc,DC=abcde,DC=com"

此脚本给出以下错误

Add-SPProfileSyncConnection:无法访问代理。请验证代理是否正在运行。在 line:1 char:1 + Add-SPProfileSyncConnection + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Offic.. .eSyncConnection: SPCmdletAddProfileSyncConnection) [Add-SPProfileSyncConnection], ArgumentE xception + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell。SPCmdletAddProfileSyncConnection

对于 -ConnectionSynchronizationOU 我是否给出了正确的参数?你能帮我吗?

4

1 回答 1

1

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

$upa=Get-SPServiceApplication -Name "UserProfileServiceAppName"

$upa.NoILMUsed=$true

$upa.Update()

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

于 2013-01-17T21:35:53.757 回答