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.Learn, how to list all Active Directory servers using PowerShell, and how ADManager Plus effortlessly lists all the servers in Active Directory. Here are a few ways of doing it with PowerShell, using System.DirectoryServices. One way to get the information is to query the DynamicSiteName registry value of the remote machine. Does anyone have an easy powershell script that will export all my users account names. Just the first initial last name. The Get-ADUser cmdlet gets a specified user object or performs a search to get multiple user objects. The GetADComputer cmdlet retrieves a single computer or several computers from Active Directory. Module for returning AD Site details.