- How to find inactive users in Active Directory using PowerShell?
- What is inactive users in Active Directory?
- How do I get a list of inactive users in Azure AD?
- How do I find inactive computers in Active Directory with or without PowerShell?
How to find inactive users in Active Directory using PowerShell?
In Active Directory Module for Windows PowerShell, Search-ADAccount –AccountInactive –UsersOnly command returns all inactive user accounts.
What is inactive users in Active Directory?
Inactive users in Active Directory can be the cause of major security issues. It is therefore pertinent that these organizations take the effort to ensure that regular checks are done on their Active Directory. Once inactive users are found in their Active Directory, these users should be disabled.
How do I get a list of inactive users in Azure AD?
How to detect inactive user accounts. You detect inactive accounts by evaluating the lastSignInDateTime property exposed by the signInActivity resource type of the Microsoft Graph API. The lastSignInDateTime property shows the last time a user made a successful interactive sign-in to Azure AD.
How do I find inactive computers in Active Directory with or without PowerShell?
You can use the Get-ADComputer cmdlet to find inactive computer objects in a domain. The LastLogonTimeStamp attribute can be used as search criteria. Note that this attribute cannot be used to retrieve real-time information about the last time a computer logged on to the domain.