How Can We Help?
Get-ADComputer to retrieve computer last logon date
The Get-ADComputer command looks like the one we’re interested in so let’s take a look at it in more detail.
Get-ADComputer -Identity SBS2K11
By default it doesn’t return anything that inidcates when it last logged on, so lets look at its extended properties.
Get-ADComputer -Identity SBS2K11 -Properties *
As you can see there is far more information when you use the -Properties * switch, and the property we are interested in is listed LastLogonDate.