PowerShell TIP – Add members to a group in different domain
I was working on automating few Active directory groups using powershell, I encountered a issue where my scripting solution was running in one domain but the group resides in another domain. Below powershell command was resulting in error as by default AD module searches on the domain from which it is running. Add-ADGroupMember -identity “groupName”…