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. There are a few ways to get the site a computer is a member of. The GetADComputer cmdlet retrieves the default set of computer object properties. Use the Properties parameter to retrieve more properties. This cmdlet is available only in on-premises Exchange. Use the Get-AdSite cmdlet to display configuration information about one or more Active Directory sites. The FindADSite PowerShell function below will return the AD Site and Subnet for a specified computer name or IP Address.