filmov
tv
Using PowerShell - Get all users are expired in domain

Показать описание
Using PowerShell - Get all users are expired in domain
1. Prepare
- Syntax : Search-ADAccount
Search-ADAccount -AccountExpired [-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 expired
+ Start - Windows PowerShell :
+ Search-ADAccount -AccountExpired | FT Name,ObjectClass,AccountExpirationDate === Show HiepIT, VietIT
- Double-click HiepIT, VietIT - Account tab - Account expires === are expired
1. Prepare
- Syntax : Search-ADAccount
Search-ADAccount -AccountExpired [-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 expired
+ Start - Windows PowerShell :
+ Search-ADAccount -AccountExpired | FT Name,ObjectClass,AccountExpirationDate === Show HiepIT, VietIT
- Double-click HiepIT, VietIT - Account tab - Account expires === are expired