Start with Powershell 6, there is Get-Uptime cmdlet to tell how long the system running.
Practice until you can't make it wrong.
Practice until you can't make it wrong.
get-aduser -Filter {BadLogonCount -ne 0} -properties * | select SamAccountName,BadLogonCount,BadPasswordTime,BadPwdCount,@{name='badPasswordTimeDT'; expression={[datetime]::fromFileTime($_.badPasswordTime)}} | sort BadPasswordTime | FT