Only one line code:
Get-ADComputer -Filter * -Properties objectGUID,objectClass,DNSHostName,Enabled,Name,distinguishedName,samAccountName,SID,whenChanged,whenCreated | Select * | Export-CSV computers.txt