I have the following query:
Get-ADComputer -Filter * -Properties * |Select-Object Name,@{n='lastLogonTimestamp';e={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString("dd/MM/yyyy")}}
This is my output:
Name lastLogonTimestamp
--------------------------------------
Device-1 06/10/2099
Device-2 14/07/2016
Device-3 03/07/2034
I have 6 domain controllers and only one domain, I run this query in this DCs and the output is the same in all server.
Why I have devices with dates over 2034 and 2099 !?
Jimcesse Principal: http://sysadmin-cr.com/ Alterno: http://blogs.itpro.es/jimcesse