Below Powershell Script migrates AD group in one domain to another in Sharepoint 2013
if(-not(
Get-PSSnapin | Where { $_.Name -eq "Microsoft.SharePoint.PowerShell"})
) {
Add-PSSnapin Microsoft.SharePoint.PowerShell;
}
$farm = Get-SPFarm
$farm.MigrateGroup('TestDomain1\Group', 'TestDomain2\Group')
if(-not(
Get-PSSnapin | Where { $_.Name -eq "Microsoft.SharePoint.PowerShell"})
) {
Add-PSSnapin Microsoft.SharePoint.PowerShell;
}
$farm = Get-SPFarm
$farm.MigrateGroup('TestDomain1\Group', 'TestDomain2\Group')
No comments:
Post a Comment