Search Active Directory for computers logged in, in the last 30 days

Get-ADComputer -Filter * -Properties OperatingSystem, LastLogonDate |      Where { $_.LastLogonDate -GT (Get-Date).AddDays(-30) } |     FT Name, OperatingSystem, LastLogonDate


Leave a Reply 0

Your email address will not be published. Required fields are marked *