【问题标题】:Powershell scripts: Create user profile synchronization service using sharepoint active directoryPowershell 脚本:使用 sharepoint 活动目录创建用户配置文件同步服务
【发布时间】:2013-01-10 09:11:24
【问题描述】:

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

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

谢谢


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

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

-ConnectionForestName "abcde.com"

-ConnectionDomain "abcde"

-ConnectionUserName“用户名”

-ConnectionPassword "密码" -asplaintext -force

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

此脚本出现以下错误

Add-SPProfileSyncConnection:无法访问代理。请确认 代理正在运行。 在行:1 字符:1 + 添加-SPProfileSyncConnection + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Offic...eSyncConnection: SPCmdletAddProfileSyncConnection) [Add-SPProfileSyncConnection],ArgumentE 异常 + FullyQualifiedErrorId:Microsoft.Office.Server.UserProfiles.PowerShell。 SPCmdletAddProfileSyncConnection

对于 -ConnectionSynchronizationOU 我是否给出了正确的参数?你能帮我解决这个问题吗?

【问题讨论】:

    标签: sharepoint powershell user-profile sharepoint-2013


    【解决方案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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-13
      • 1970-01-01
      • 2021-11-16
      相关资源
      最近更新 更多