[英]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.您可以将Search-ADAccount与–LockedOut
参数一起使用。
PS C:\> Search-ADAccount -LockedOut | FT Name,ObjectClass -A
Would print会打印
Name ObjectClass
---- -----------
Patti Fuller user
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.