Search-ADaccount

查询被锁定用户

Search-ADAccount -LockedOut | FT Name,ObjectClass -A

 

 

Search-ADAccount

Search-ADAccount

Gets Active Directory user, computer, or service accounts.

Syntax

 

 
 
Search-ADAccount -AccountDisabled <switch> [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • AccountDisabled

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -AccountExpired <switch> [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • AccountExpired

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -AccountExpiring <switch> [-DateTime <DateTime>] [-TimeSpan <TimeSpan>] [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • AccountExpiring

  • DateTime

  • TimeSpan

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -AccountInactive <switch> [-DateTime <DateTime>] [-TimeSpan <TimeSpan>] [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • AccountInactive

  • DateTime

  • TimeSpan

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -LockedOut [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • LockedOut

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -PasswordExpired <switch> [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • PasswordExpired

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

 
 
Search-ADAccount -PasswordNeverExpires <switch> [-AuthType {<Negotiate> | <Basic>}] [-ComputersOnly <switch>] [-Credential <PSCredential>] [-ResultPageSize <int>] [-ResultSetSize <System.Nullable[int]>] [-SearchBase <string>] [-SearchScope {<Base> | <OneLevel> | <Subtree>}] [-Server <string>] [-UsersOnly <switch>] [<CommonParameters>]
  • PasswordNeverExpires

  • AuthType

  • ComputersOnly

  • Credential

  • ResultPageSize

  • ResultSetSize

  • SearchBase

  • SearchScope

  • Server

  • UsersOnly

 

posted on 2016-09-27 12:40  momingliu11  阅读(1242)  评论(0编辑  收藏  举报