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.The GetADComputer cmdlet retrieves the default set of computer object properties. Use the Properties parameter to retrieve more properties. I want to fill the description field for computers in a specific AD OU with information from the 'location' tab. You can join domain to specific OU using PowerShell cmdlet AddComputer . The GetADComputer cmdlet allows us to find computer objects in the Active Directory and extract information from them. Run the Get-AdReplicationSite cmdlet with no parameters. 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. Let's walk through how to get it up and running.