This article explains the steps to identify and list inactive Active Directory (AD) computers using PowerShell and ADManager Plus, a unified AD, Office 365 and Exchange Server management and reporting solution.
To find inactive AD computers using the last login time, the Get-ADComputer cmdlet has to be used along with the necessary filters. Further, to get the inactive AD computers report for only specific OUs or domains, more attributes must be added, making the script more complex. As ADManager Plus offers predefined reports on all important AD objects, including computers, the inactive AD computers report can be generated, for the required domains and OUs, at just the click of a mouse button, making it the easiest and preferred option over PowerShell
This script will list all computers that have been inactive for 30 days, along with their properties such as sAMAccoutName, and Operating System. It will also export the report to the specific location in CSV format.
Screenshot
In fact, almost all AD, Office 365, Exchange management features have CSV import option built-into them, allowing you to manage the objects in single or bulk easily, using the same feature, with just mouse clicks.
Limitations of using PowerShell to import users to AD
Access the status of Active Directory computers from prebuilt reports.
Get 30-day free trial.Your download should begin automatically in 15 seconds. If not, click here to download manually.
For AD User Management
For AD User Reporting
For GPO Management
For Password Management
For AD Group Management
For File Access Management
For AD Computer Management
For Office 365 Management
For Exchange Management
For Microsoft Graph PowerShell
Entra ID user management
Entra ID reporting
Entra ID group management and reporting
Entra ID domain management
Entra ID contact management and reporting
Other Entra ID tasks
For Azure AD PowerShell
Entra ID user management
Entra ID reporting
Entra ID group management
Entra ID group reporting
Entra ID domain management
Entra ID contact management and reporting
Other Entra ID tasks