I want to add a function that can retrieve the Site of a AD Computer. 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 Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. The GetADComputer cmdlet allows us to find computer objects in the Active Directory and extract information from them. To search effectively for computers in your Active Directory you should use Get-ADComputer with the -Filter switch. See syntax examples here. How do I query each computer in Active Directory for it's Name, Manufacturer, and Model? Use PowerShell to get a list of computers in the OU and sub OU of your Active Directory and export the computer location data in CSV format. You will have to use the Get-ADComputer cmdlet, and use the right parameters and filters to get the desired list of AD computer accounts.