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.There are a few ways to get the site a computer is a member of. The GetADComputer cmdlet retrieves the default set of computer object properties. Use the Properties parameter to retrieve more properties. In this walkthrough, I demonstrate the steps I took to complete the "Enumerating Active Directory" network on TryHackMe. I want to fill the description field for computers in a specific AD OU with information from the 'location' tab. In this post, I'll show you several examples of the GetADComputer PowerShell command. The FindADSite PowerShell function below will return the AD Site and Subnet for a specified computer name or IP Address. I Love What I Do and it Shows!