Tuesday, October 2, 2018

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

No comments:

Post a Comment

tmux

so recently i have been working more with linux and i discovered tmux. now i have heard of tmux ages ago but never really used it to is full...