We are using adaxes with a M365 hybrid environment and right now we have to manually create a remote mailbox on prem after user creation.
We have the M365 Tenant setup so that a user is automatically added in M365 and licensed. They also already have their M365 mailbox created and the address email@example.com
Is there a way to create a custome command to auto-create the on prem remote mailbox.
This is the current command we are using in exchange shell to accomplish this manually
Enable-MailUser -Identity "firstname.lastname@example.org" –ExternalEmailAddress "email@example.com"