r/exchangeserver • u/Fragrant-Risk4963 • Jun 10 '26
New User/Mailbox Creation without Exchange Server
Our current environment has a hybrid Exchange server where we have historically created new users and mailboxes at the same time through the Exchange Admin Center. However, we wish to retire the server and manage those functions locally from our own workstations. I've managed to get PowerShell lines working to create the user in AD, but I cannot get the "Enable-RemoteMailbox" function to work. It returns "The term 'Enable-RemoteMailbox' is not recognized as a name of a cmdlet, function, script file, or executable program." I've read that this feature will only work from within the Exchange Management Shell, but I can't get that installed locally; only on the server (that we're retiring). Is there any other equivalent command to accomplish this?
6
u/sembee2 Former Exchange MVP Jun 10 '26
You need to install the management tools on to your workstation. That id the only way to grt those commands. Any other method is not supported.
7
u/elpollodiablox Jun 10 '26 edited Jun 10 '26
Enable-RemoteMailbox is a hybrid function that you would run from a local Exchange server to add Exchange attributes to a local AD account. After you assign their license their mailbox will be available. If you are trying to retire your hybrid setup then don't use this, just assign a license.
Edit: Sorry, hit Post too soon.
If you want to do this remotely then you'll need to establish a remote PowerShell session to the Exchange hybrid server and load the Exchange configuration
Something like:
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri %your Exchange server%/PowerShell/ -Authentication Kerberos
3
u/timsstuff IT Consultant Jun 10 '26
Well recent updates to Entra Connect Sync do allow you to manage Exchange attributes for AD-synced users in the cloud now, so you could remove Exchange entirely. Just want to make sure there are no on-prem mail relays or anything since local addresses will fail to resolve.
If you go down that road you simply assign a license and it creates the mailbox automatically.
1
u/tomrb08 Jun 10 '26
You can’t just shut down Exchange and expect everything to work in a hybrid setup. All due respect, you don’t sound technically experienced enough to be doing what you’re trying to do. I’d consider hiring a consultant to help you.
1
u/Potential-Eternal Jun 10 '26
It's all changed in the last few months. You can now edit synced objects directly in Entra and Exchange Online and be done with the server and any onprem tooling.
See IsExchangeCloudManaged at https://c7solutions.com/2026/01/understanding-iscloudmanaged-and-isexchangecloudmanaged
1
u/joeykins82 SystemDefaultTlsVersions is your friend Jun 10 '26
Read this before you start making hasty decisions: https://learn.microsoft.com/en-us/exchange/hybrid-deployment/enable-exchange-attributes-cloud-management
You've already demonstrated that you haven't properly read the documentation here, given that transitioning to a non-operational Exchange server requires a very specific series of steps.
I would recommend that you just keep the Exchange server running until you've fully digested everything which is supported and exactly how to deploy those supported scenarios.
1
u/dfo85 Jun 10 '26
We have no on prem Exchange server left. User object is created in AD, syncs to Entra and we add m365 license(s) which provision mailbox, etc.
1
u/Steve----O Jun 11 '26
I built a new user script which also set all of the remote mailbox exchange attributes in AD and did not have to run the remote-mailbox command. I’d share it, but no longer work there. I just looked at a remote mailbox user, and set the same attributes. My not stumbling block was missing the exchange server version (sp) attribute on my first try.
1
u/St_Admin Jun 11 '26
https://learn.microsoft.com/en-us/exchange/manage-hybrid-exchange-recipients-with-management-tools
0
u/tjwmagic Jack of all trades, master of ? Jun 10 '26
We are in the same boat. At present since our email flows first on prem before exchange online. We use the EAC to create the mailboxes. And then let it sync to the cloud.
We have been working with the fast track team. Before you can fully decom the last on prem exchange server you will need to do some changes to your user accounts. Something in the attribute editor. Until we go full cloud we will still have one on prem node to do the admin.