I want to add a function that can retrieve the Site of a AD Computer. In this tutorial, you will learn how to manage AD sites using PowerShell, so you never have to open a Windows MMC ever again!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. The New-ADComputer cmdlet creates a new Active Directory computer object. This cmdlet does not join a computer to a domain. There are a few ways to get the site a computer is a member of. This article explains the steps to identify and list inactive Active Directory (AD) computers using PowerShell and ADManager Plus. The GetADComputer cmdlet retrieves the default set of computer object properties. Use the Properties parameter to retrieve more properties.