Так и я о том же Большое спасибо за помощь. Сейчас я получаю то, что нужно.
Для тех кому может понадобиться данный скрипт:
Код:

$date=(Get-Date).AddDays(-45)
Get-ADUser -SearchBase "DC=lol,DC=com" -f {(enabled -eq $true) -and (pwdlastset -lt $date)} -properties *| select displayname, sAMAccountName, passwordlastset, passwordneverexpires, accountexpirationdate, enabled, company, department, description, telephoneNumber, l, distinguishedName | export-csv -Encoding UTF8 D:\test.csv