On the system, start an elevated Windows PowerShell window or Windows PowerShell ISE window using the domain credentials for any account.
Then, type the following lines of PowerShell:
Import-Module ActiveDirectoryGet-ADForest | select domains