show last logon time for a computer account in powershell

here is how you show the last logon date for a computer account in powershell

Import-Module ActiveDirectory

Get-ADcomputer -Filter * -properties * | sort lastlogondate | FT name, Lastlogondate, Win32_operatingsystem

Source

 

Leave a Reply

Your email address will not be published. Required fields are marked *