Run the Get-AdReplicationSite cmdlet with no parameters. I want to add a function that can retrieve the Site of a AD Computer.The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. Learn, how to list all Active Directory servers using PowerShell, and how ADManager Plus effortlessly lists all the servers in Active Directory. This article explains the steps to identify and list inactive Active Directory (AD) computers using PowerShell and ADManager Plus. Best PowerShell method to get the current Active Directory Site name of the local computer - Stack Overflow. Windows PowerShell for Active Directory includes the ability to manage replication, sites, domains and forests, domain controllers, and partitions. My end goal was to create an Active Directory overview report using PowerShell. There are a few ways to get the site a computer is a member of. The Get-ADReplicationSiteLink cmdlet can be used to return a specific Active Directory site link or a set of site links based on a specified filter.