简体   繁体   中英

Is there a way to use PowerShell to test if an AD user is locked out?

我需要使用 PowerShell 检查特定 AD 用户当前是否被锁定。

You can use the Search-ADAccount with the –LockedOut argument.

PS C:\> Search-ADAccount -LockedOut | FT Name,ObjectClass -A

Would print

Name           ObjectClass
----           -----------
Patti Fuller       user

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM