fresh exchange 2016 installation without possible to connect or uninstall

Exchange 2016: Fresh install, but cannot connect to EMS (or to localhost/ecp), cannot uninstall. What can I do?

The organization have a Exchange 2010 installation working fine. We want to upgrade to Exchange 2016, so we installed a new Windows Server 2016 with all updates, and then we installed the Exchange 2016. Everything looked fine, created a new database on D drive. Created a certificate request, but have not implemented the new certificate yet. All users are still on the old 2010 server. At the same time there was a couple of new 2016 Active Directory server installed without any problems, and the old AD servers that they will replace are still running AD.

We have restarted the new Exchange 2016 server a couple of times, without any changes. When we start EMS we get this error message:

VERBOSE: Connecting to SRF-EX02.srfosl.local.
New-PSSession : [srf-ex02.srfosl.local] Connecting to remote server srf-ex02.srfosl.local failed with the following err
or message : [ClientAccessServer=SRF-EX02,BackEndServer=srf-ex02.srfosl.local,RequestId=c920c6b4-616b-48b5-be90-95ff939
268d3,TimeStamp=19.10.2018 18.38.17] [FailureCategory=Cafe-ConnectFailure]  For more information, see the about_Remote_
Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
VERBOSE: Connecting to SRF-EX02.srfosl.local.


When we open https://localhost/ecp in Internet Explorer:

This page can’t be displayed

Turn on TLS 1.0, TLS 1.1, and TLS 1.2 in Advanced settings and try connecting to https://localhost  again. If this error persists, it is possible that this site uses an unsupported protocol or cipher suite such as RC4 (link for the details), which is not considered secure. Please contact your site administrator.


I have reset Internet Explorer settings, and checked that TLS 1.0, 1,1 and 1,2 setting is activated.

I also opened the IIS to check that the website is running, and it is.

I decided to try to uninstall the Exchange server, but ofcource that is not possible, I get the error message:

Error:
Uninstall can't continue. Errors:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes, Audit mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To get a list of all Audit mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -AuditLog. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. To disable a Audit mailbox so that you can delete the mailbox database, run the command Get-Mailbox -AuditLog | Disable-Mailbox. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>. It was running the command 'Remove-MailboxDatabase 'CN=Mailbox Database 0214803858,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SRF,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=srfosl,DC=local' -whatif'.
This mailbox database is associated with one or more move requests. To get a list of all move requests associated with this database, run Get-MoveRequest -SourceDatabase <Database ID> and Get-MoveRequest -TargetDatabase <Database ID>. To remove a move request, run Remove-MoveRequest <Recipient ID>. It was running the command 'Remove-MailboxDatabase 'CN=SRF-MDB02,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SRF,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=srfosl,DC=local' -whatif'.


But I cannot remove the database since I cannot connect to the Exchange server.

Any tip about where to go from here?
There is no data inside the databases, and nothing I need on this server, so could I just delete this server (it is running on VMware), and create a new server with new installation?
LVL 1
Tomas BjervedIT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michal ZiembaIT AdministratorCommented:
I am afraid that deleting the VM will only mess up your AD/Exchange configuration. The Exchange has a lot of AD reference objects which needs to be removed properly. Also, I am afraid (maybe I am wrong here, but I guess seen this somewhere in the documentation) that after you introduced the Exchange 2016 to the Exchange 2010 environment you cannot uninstall Exchange 2016.  

I would focus on the issue with accessing the server.
Try to see if all of The Exchange services are up and running. Restart the IIS.
Michal ZiembaIT AdministratorCommented:
Try to open a normal PowerShell instance on the Exchange server and load the Exchange module manually:

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn

Open in new window

Tomas BjervedIT ConsultantAuthor Commented:
This morning, after a reboot I managed to connect to the new Exchangeserver in EWS. But the web portal on https://localhost/ecp is not working. All I get is:

This site can’t be reached The connection was reset.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET


I look in the IIS and I see that it is running. What can be the source of this problem? Any tip to what to check?
Tomas BjervedIT ConsultantAuthor Commented:
Since we was stuck we ended up deleting the server, and cleaning up the Exchange organization with ADSI Edit. Then we installed a new server.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.