Using PowerShell - Get all users are Password Never Expires in domain
Vložit
- čas přidán 21. 08. 2024
- Using PowerShell - Get all users are Password Never Expires in domain
1. Prepare
- DC21 : Domain Controller (pns.vn)
- Syntax : Search-ADAccount
Search-ADAccount -PasswordNeverExpires [-AuthType {Negotiate | Basic}] [-ComputersOnly]
[-Credential pscredential] [-ResultPageSize int] [-ResultSetSize int] [-SearchBase string]
[-SearchScope {Base | OneLevel | Subtree}] [-Server string] [-UsersOnly][CommonParameters]
2. Step by step
- DC21 : Get all users are Password Never Expires
+ Start - Windows PowerShell :
+ Search-ADAccount -PasswordNeverExpires | FT Name,ObjectClass,PasswordNeverExpires
+ Start - Server Manager - Tools - Active Directory Users and Computers - pns.vn - IT OU
- Double-click Users are Password Never Expires - Account tab - Account options
=== Checked "Password never expires"
how can we get the password minimum length of any given domain account ?