
Get-ADDomainController provides computer information specific to Domain Controllers. Get-ADDomain provides information about the current domain you are in. Get-ADForest provides information about the Active Directory forest the computer you run the command is in.

There’s some interesting information in the results like what OS the DC is running.

Get-RootDSE gets information about the LDAP server (the Domain Controller) and displays it.
/net-user-command-2618097-abb1f332abf941a2ac5e948ab25315ff.png)
Import-Module ServerManager Add-WindowsFeature RSAT-AD-PowerShell On a Windows server (2008 R2 or newer), run the following commands in a PowerShell console (as an Adminsitrator): On a Windows client, install the Remote Sever Administration Tools (RSAT) and ensure the Active Directory PowerShell module is installed. Microsoft provided several Active Directory PowerShell cmdlets with Windows Server 2008 R2 (and newer) which greatly simplify tasks which previously required putting together lengthy lines of code involving ADSI.
