I have Adaxes installed in one forest (domain.com) and we have a 1 way forest trust with another forest (ca.domain.com). I have made the Adaxes service account in domain.com a member of the BUILTIN\administrators group in ca.domain.com and have it added as a managed domain in the Adaxes Admin Console.
I'm able to view objects normally, I'm able to create the OU in the console.
However when I try to create an OU using the New-AdmOrganizationalUnit cmdlet using this command:
New-AdmOrganizationalUnit -Server ca.domain.com -Path "OU=Customers,DC=ca,DC=domain,DC=com" -Name NewTestCustomer
I get the following error:
New-AdmOrganizationalUnit : A local error has occurred.
At line:20 char:1
+ New-AdmOrganizationalUnit -Server ca.domain.com -Path "OU=Customers,DC=ca,DC ...
+ CategoryInfo : NotSpecified: (:) \[New-AdmOrganizationalUnit\], DirectoryComException
+ FullyQualifiedErrorId : Softerra:Adaxes:PowerShellModule:Commands:NewAdmOrganizationalUnitCommand:ProcessRecord,Softerra.Adaxes.PowerShellModule.Commands.NewAdmOrganizationalUnitCommand
Any thoughts on how to run scripts in a managed domain? I also tried this command:
Get-AdmOrganizationalUnit -Filter 'Name -like "*"' -Server ca.domain.com
I get the same error. Could someone help me understand what I'm doing wrong?