top of page

PowerShell - Get All AD Users Password Information

  • Writer: Jon Boyette
    Jon Boyette
  • Jan 7, 2022
  • 1 min read

Get the Name, Expired or no, Last set and If set to never expire info, copy the below to a text file and save as UserssPasswordsInfo.ps1, Outputs to Temp as c:\temp\alladuserspasswordinfo.txt


Nice one-liner



Get-ADUser -filter * -properties PasswordExpired, PasswordLastSet, PasswordNeverExpires | ft Name, PasswordExpired, PasswordLastSet, PasswordNeverExpires > C:\temp\AllADusersPasswordInfo.txt



 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page