Would you like to learn how to query computers related information from Active Directory using Powershell? In this tutorial, we are going to show you how to use Powershell to get information from the Active Directory computers using the command-line on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Get computers information from Active Directory
As an Administrator, start a new POWERSHELL command-line prompt.
Get all domain computers from Active Directory.
Here is the command output.
Get all properties from all computer accounts.
Here is the command output.
Get all computers from a specific organizational unit.
Here is the command output.
Get the name of all computers.
Here is the command output.
Get the list of disabled computer accounts.
Here is the command output.
Count the number of computers grouped by the operating system version.
Here is the command output.
Get the last logon from all computers.
Here is the command output.
Get the list of inactive computers for a specific number of days.
Here is the command output.
Get all computers with a specific text in the name.
Here is the command output.
Congratulations! You are able to get computers related information from Active Directory using Powershell.