Exchange Server Schema Information

Exchange Server extends the Active Directory schema during the PrepareSchema step during setup. The steps PrepareAD, PrepareDomain, or PrepareAlLDomains create Active Directory containers and objects that are crucially important for a stable operation of Exchange Server.
Read Exchange Schema Information from all Domains in an Active Directory Forest

This script reads the Exchange schema version from the Active Directory schema partition. The Exchange organization name is fetched from Active Directory automatically.