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

Surfshark VPN

 Hi all,  i have been using Private internet access for a vpn for a while now with great results but recently i have been recommended to use...