You may get the following error while executing Get-Mailbox on Microsoft Exchange Server 2016.
Get-Mailbox : Active Directory server is not available. Error Message: Active directory response: The LDAP server returned an unknown error.
Properly cross check that Active Directory server is up and running in your environment. Try to ping an Active Directory server from Microsoft Exchange Server.