Forum Discussion
Marvin Oco
Mar 17, 2021Iron Contributor
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
VasilMichev
Mar 17, 2021MVP
You can try something like this:
Get-MsolUser -All | ? {$_.LastPasswordChangeTimestamp -ge (Get-Date).AddDays(-90)} | Export-CSV blabla.csv -nti
Get-MsolUser -All | ? {$_.LastPasswordChangeTimestamp -ge (Get-Date).AddDays(-90)} | Export-CSV blabla.csv -nti