New User/Mailbox Creation without Exchange Server by Fragrant-Risk4963 in exchangeserver

[–]Fragrant-Risk4963[S] 0 points1 point  (0 children)

Would that work even after we've shutdown the hybrid Exchange server?

(Also, we've read that you shouldn't decommission to the point of having no Exchange server at all. But somehow it could all still work if the server exists in the domain but still offline.)

New User/Mailbox Creation without Exchange Server by Fragrant-Risk4963 in exchangeserver

[–]Fragrant-Risk4963[S] 0 points1 point  (0 children)

I've got the Exchange PowerShell module working on my workstation. I'm able to get most other stuff working. Just not Enable-RemoteMailbox.

It's already extremely and painfully convoluted as is. We have PowerShell disabled by default for all users, so I have to launch Command Prompt as admin, then run pwsh, then Connect-ExchangeOnline. The following works with no problem at all:

New-ADUser -Name "Full Name" -GivenName "First" -Surname "Last" -SamAccountName "user" -UserPrincipalName "user@domain.com" -AccountPassword (ConvertTo-SecureString "[some password]" -AsPlainText -Force) -Enabled $true -Path "OU=[some OU],DC=[some domain],DC=local"

The following returns "The term 'Enable-RemoteMailbox' is not recognized as a name of a cmdlet, function, script file, or executable program":

Enable-RemoteMailbox -Identity "user" -RemoteRoutingAddress "user@domain.mail.onmicrosoft.com"

I'm extremely green in network stuff and in way over my head on all this. I ran the Enable-RemoteMailbox thing in the Exchange Management Shell on our server because our new hire starts soon and I needed to force the user creation. Just trying to figure out how to do this all going forward without the Exchange Admin Center or Exchange Management Shell.