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. Right click on the ou you want to use and go to the attributes tab (or similar) and look for distinguishedName in the list. The Get-ADObject cmdlet gets an Active Directory object or performs a search to get multiple objects. 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 GetADUser PowerShell cmdlet allows you to get information about an Active Directory user, its attributes, and search among domain users. DESCRIPTION This Cmdlet gets Active Directory Site Options. Run the Get-AdReplicationSite cmdlet with no parameters.