How to Get the Last Logon Date and Time in Active Directory Computer.
For Single computer.
For All Computer
Get-ADComputer -Filter * -Properties * | ft Name, LastLogonDate -AutoSize
Export to CSV or Text
file
Get-ADComputer -Filter * -Properties * | ft Name, LastLogonDate -AutoSize | Out-File C:\users\Administrator\Desktop\comlist.txt
No comments:
Post a Comment