When using the following I get a .csv file listing computer names.
Get-ADComputer -Filter * -SearchBase "OU=Computers, OU=Production, DC=prod, DC=root, DC=net"* | Select-Object Name >.\AllComputers.txt
When I use the following I get a list only showing numerical list of computer name length.
Get-ADComputer -Filter * -SearchBase "OU=Computers, OU=Production, DC=prod, DC=root, DC=net"* | Select-Object Name | Export-CSV .\AllComputers.csv
How do I get the correct computer list when using Export-CSV?