hello, need assistance with the last part of this script.
basically, trying to send the results of this script to a csv:
get-qaduser -searchroot "OU=accounts,DC=domain,DC=com" -ldapfilter '(sAMAccountName)' | Format-List name,description
would like to | these results to a .csv.
i've tried adding this at the end: | export-csv results.csv
but doesnt work.
thanks in advance,