Hi All,
We have two forest(Contoso.com and fabrikam.com) with trust enabled.
Created a domain local group in fabrikam and global group in Contoso forest
Trying to add global group as a member in local group using below PowerShell command which works.
I have bulk groups to be added(ie Contoso GroupB to fabrikam GroupB, Contoso GroupC to Fabrikam GroupC likewise).Anyone who can help me with script.
Note:Script is executed in fabrikam forest.
$domainGroup = Get-ADGroup Contoso GroupA      -Server dc.contosso.com Add-ADGroupMember Fabrikam GroupA -Members $domainGroup