Would you like to learn how to find inactive computers in Active Directory using Powershell? In this tutorial, we are going to show you how to use Powershell to find inactive computer accounts in Active Directory 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 – Find inactive computers in Active Directory
As an Administrator, start a new POWERSHELL command-line prompt.
Find inactive computers in Active Directory.
Here is the command output.
In our example, we found computers that did not log in for 10 days or more.
Optionally, export the result as a CSV file.
Here is the CSV file content.
Find computers that have not logged in to the Active Directory in the last 30 days.
Find computers that have not logged in to the Active Directory in the last 60 days.
Find computers that have not logged in to the Active Directory in the last 90 days.
Congratulations! You are able to find inactive computers in Active Directory using Powershell.