Thursday, 18 June 2015

EXPORT LIST ALL COMPUTERs IN ACTIVE DIRECTORY WITH STATUS LAST LOGON DATE

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

No comments:

Post a Comment