Powershell script to list for users that were deprovisioned over 60 days from current date
I currently have the below script that shows me all the users in a deprovisioned status but I would like to filter that further only those with a statusChanged date older than 60 days. I am not a developer and am very new to scripting in powershell so any help you can provide is appreciated.
} $obj = New-Object psobject -Property $line $_c = $toexport.Add($obj) } #Path for utility will have to be changed to a more generic location. $toexport | Export-Csv -Path "C:\OktaExport\user-list.csv" -NoTypeInformation