I'm learning the Adaxes powershell methods for creating objects.
I would like to create a contact that is mail enabled.
I attempted to use the example but it failed to create the contact in the correct location.
The example from the online help shows.
https://www.adaxes.com/sdk/New-AdmObject/
New-AdmObject -Name testSaraDavisContact -Type "contact" -OtherAttributes @{'msDS-SourceObjectDN'="OU=Contacts,OU=Japan,DC=DC1,DC=DOMAIN,DC=com"} -AdaxesService USCPADAXES01 -Credential $myCredentials
I must have misunderstood what the OtherAttributes is for. I was trying to create the object in a specific OU and it ended up in a different domain and not in an OU at all and no error.
Can you provide a better example of how to create a mail enabled contact with PowerShell using the New-AdmObject?