HI,The below command executes AD user logon hisotry and need the similar but last shutdown history. kindly advice.
Get-ADComputer -Filter -Properties | Sort LastLogonDate | FT Name, LastLogonDate -Autosize | Out-File C:\Temp\ComputerLastLogonDate.txt Thanks