CmdID / PowerShell / Cmdlets / Search
Search-ADAccount
Gets Active Directory user, computer, or service accounts. Windows Server PowerShell reference
From the Windows Server PowerShell reference 18 parameters Its page in the reference
Parameters
Show its 18 parameters
-AccountDisabledSpecifies a search for accounts that are disabled.-AccountExpiredSpecifies a search for accounts that are expired.-AccountExpiringIndicates that this cmdlet searches for accounts that are expiring in a given time period or by a specified time.-AccountInactiveIndicates that this cmdlet searches for accounts that have not logged in within a given time period or since a specified time.-AuthTypeSpecifies the authentication method to use.-ComputersOnlyIndicates that this cmdlet searches only computer accounts.-CredentialSpecifies the user account credentials to use to perform this task.-DateTimeSpecifies a distinct time value for Search-ADAccount parameters such as *AccountExpiring*, *AccountInactive*, and *PasswordExpired*.-LockedOutIndicates that this cmdlet searches for accounts that are locked out.-PasswordExpiredIndicates that this cmdlet searches for accounts that have an expired password.-PasswordNeverExpiresIndicates that this cmdlet searches for accounts that have a password that does not expire.-ResultPageSizeSpecifies the number of objects to include in one page for an Active Directory Domain Services query.-ResultSetSizeSpecifies the maximum number of objects to return for an Active Directory Domain Services query.-SearchBaseSpecifies an Active Directory path to search.-SearchScopeSpecifies the scope of an Active Directory search.-ServerSpecifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server.-TimeSpanSpecifies a time interval.-UsersOnlyIndicates that this cmdlet searches for user accounts only.