$then = (Get-Date).AddDays(-90)
Get-ADComputer -SearchBase "OU=Computers,OU=Units,DC=domain,DC=com" -Property Name,lastLogonDate,description -Filter {lastLogonDate -lt $then} | Select-Object name,lastlogondate,enabled,description | export-csv GamlaKlienter.csv -Delimiter ";" -Encoding UTF8 -NoTypeInformation