Answers for "krbtgt password reset and canary files"

0

krbtgt password reset and canary files

$Days = (Get-Date).AddDays(-31)
$Account = Get-AdUser krbtgt -property passwordlastset
$Setdate = if($Account.PasswordLastSet -gt $Days){ "Healthy - Password set date $($Account.Passwordlastset)" } else {" Unhealthy - Password set date $($Account.Passwordlastset)" }
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language