I am able to use the script below just fine and save it to a .csv file. My issue is the distinguished name part, the script adds just part of the distinguished name and cuts off the rest with 3 dots (...). I need this to show the distinguished name in its entirety, any suggestions?
get-aduser -SearchBase "OU=User_Accounts,DC=DEVLAB,DC=LOCAL" -filter * -Properties lastlogondate, passwordlastset | Where-Object {($_.lastlogondate -le $90days -or $_.lastlogondate -notlike "*")-AND ($_.passwordlastset -le $90days) -AND ($_.Enabled -eq $True)} | Select-Object name,distinguishedname,lastlogondate,passwordlastset