📜  krbtgt 密码重置和金丝雀文件 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:35.434000             🧑  作者: Mango

代码示例1
$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)" }