sharepoint AD Security Group同步,谁有好办法

霖雨 版主
博客专家认证
2016-05-13 04:48:25
我这里环境,很多AD Security Group在AD改了Name属性了,然后我们这里SharePoint还是之前的Name,现在想要同步,不知道大家有什么好办法。
试过Set-SPUser -SyncFromAD,用户可以,AD安全组不行。
不知道大家有什么好办法么?!
我这没有UPS。
...全文
447 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
霖雨 版主 2016-05-17
  • 打赏
  • 举报
回复
最后写代码搞定~~呵呵~~
  • 打赏
  • 举报
回复
我覺得最好是叫用戶自己刪掉該group再加回來 另外網上找到一段PowerShell應該合用:
if ((Get-PSSnapin 'Microsoft.SharePoint.PowerShell' -ErrorAction SilentlyContinue) -eq $null){Add-PSSnapin 'Microsoft.SharePoint.PowerShell'}
 
$SPSiteFilter = "https://sharepoint.domain.ch"
 
Get-SPSite | where{$SPSiteFilter -contains $_.Url} | %{
 
    $_.rootweb.siteusers | where{($_.DisplayName -ne $_.UserLogin) -and $_.IsDomainGroup} | %{
 
        Write-Host "Change: $($_.DisplayName) to: $($_.UserLogin)"
 
        $_.DisplayName = $_.UserLogin
        $_.Name = $_.UserLogin
        $_.Update()
 
    }
}
reference
Kianteck 2016-05-16
  • 打赏
  • 举报
回复
请尝试参考下面地址方法: https://blogs.msdn.microsoft.com/joerg_sinemus/2010/09/28/moss-running-stsadm-o-migrategroup-command-keeps-the-old-group-name-and-does-not-replace-with-the-new-name/
Justin-Liu 2016-05-16
  • 打赏
  • 举报
回复
那就只能写代码了吧
Justin-Liu 2016-05-16
  • 打赏
  • 举报
回复
上codeplex上找找 应该有现成的tool

3,244

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 SharePoint
社区管理员
  • SharePoint社区
  • 霖雨 - LinyuLoveTJ
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧