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

Super Contributor

hi,

 

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

 

tnx

1 Reply
You can try something like this:

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