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. 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. This blog reviews the process to create a new Active Directory user with PowerShell cmdlet NewADUser. I'm using the following query to get all the servers that do NOT have the PrintServer role installed. The query takes about 8 minutes to complete. You can join domain to specific OU using PowerShell cmdlet AddComputer . You can use certain parameters with the NewADUser command to populate the most common user properties. I am trying to get the following information through Powershell on my AD: OS, OS Version, OS Architecture (32 or 64 bit), RAM, and space left on C Drive.