Use the Get-AdSite cmdlet to display configuration information about one or more Active Directory sites.
The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. The Identity parameter specifies the Active Directory computer to retrieve. You can identify a computer by its distinguished name, GUID, security identifier (SID) or Security Accounts Manager (SAM) account name.
Get-ChildItem displays the files and directories in the PowerShell console. By default Get-ChildItem lists the mode (Attributes), LastWriteTime, file size (Length), and the Name of the item.
To view the value of a custom attribute in Active Directory, you can use the PowerShell cmdlet Get-ADUser. You'll need to include the -Properties parameter and specify the attribute you want to retrieve.
To find all of the PowerShell commands to work with AD sites, run Get-Command "ADReplication" . Get-ADReplicationSite with no parameters only gives the current site. 2. To find all Active Directory sites for the entire domain, run Get-AdReplicationSite using the Filter parameter and an asterisk ( ).