Forum Discussion

Marvin Oco's avatar
Marvin Oco
Steel Contributor
Mar 17, 2021

get msoluser - get users with password 90 days since last set

hi,

 

is there a script that can export users with password 90 days since last set?

 

tnx

  • You can try something like this:

    Get-MsolUser -All | ? {$_.LastPasswordChangeTimestamp -ge (Get-Date).AddDays(-90)} | Export-CSV blabla.csv -nti

Resources