查找账号: get-aduser -f {name -like '*santa*'} | format-list name,samaccountname

1.查询账号是否被锁定

Get-ADUser sean.shen -Properties * | Select-Object lockedout
  1. 解锁账号

    Unlock-ADAccount -Identity sean.shen