我需要使用 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.