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

Comments

Popular posts from this blog

xpipe

Remove Proxmox Subscription Popup