1. Go to Administrative
Tools > and select the Active Directory Module for Windows PowerShell.
2. On the Active
Directory Module for Windows PowerShell run the command syntax as below;
Get-ADComputer -Filter * -Properties * | FT Name, LastLogonDate –Autosize
3. We will get the result as screen capture as below;
Name LastLogonDate
---- -------------
MHI-DC01
6/12/2015 4:03:07 PM
MHI-CM07
6/12/2015 4:12:52 PM
TESTPC 6/12/2015 4:26:33 PM
Reference URL
http://oxfordsbsguy.com/2014/04/28/powershell-get-adcomputer-to-retrieve-computer-last-logon-date-part-1/
Reference URL
http://oxfordsbsguy.com/2014/04/28/powershell-get-adcomputer-to-retrieve-computer-last-logon-date-part-1/
No comments:
Post a Comment