What my script does is querys AD for computers added within the last 90 days then get the user logged in and the computer name. How was I add the whencreated to the output list?
Get-ADComputer -Filter * -Properties whenCreated | ? { ((Get-Date) - $_.whenCreated).Days -lt 90}| select whencreated,name |Foreach-Object { Get-WmiObject Win32_ComputerSystem -cn $_.name -EA silentlyContinue |
Select-Object USername,Caption,Manufacturer }