I want to add a function that can retrieve the Site of a AD Computer. The GetADComputer cmdlet retrieves the default set of computer object properties.Use the Properties parameter to retrieve more properties. The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. There are a few ways to get the site a computer is a member of. The 185 commands below are a random list of PowerShell oneliners I've taken note of over the years. In this post, I'll show you several examples of the GetADComputer PowerShell command. And download the script. 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.