Using PowerShell - Find Inactive Users in period (Active Directory)
1. Prepare
- DC1 : Domain Controller(Yi.vn)
2. Step by step : Find Inactive Users 90 day inactive
- DC1 : Find Inactive Users 90 days inactive
+ Server Manager - Tools - Active Directory Module for Windows PowerShell, type :
+ Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90.00:00:00 # Get all account inactive 90 days
+ Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90.00:00:00 | ?{$_.enabled -eq $true}
# Get account enabled inactive 90 days
+ Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90.00:00:00 | ?{$_.enabled -eq $true} | Select Name,LastLogonDate
# Get account enabled inactive 90 days with Name + LastLogonDate fields
-------------------------------******************** Youtube.com/c/MicrosoftLab ********************---------------------------
Ещё видео!