Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Powershell show inactive account in active directory

Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90 | ?{$_.enabled -eq $True} | Get-ADUser -Properties Name, sAMAccountName, givenName, sn | Select Name, sAMAccountName, givenName, sn
Source by social.technet.microsoft.com #
 
PREVIOUS NEXT
Tagged: #Powershell #show #inactive #account #active #directory
ADD COMMENT
Topic
Name
7+2 =