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