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
Comments
Post a Comment