Using PowerShell - Get all users, computers are disabled in domain

preview_player
Показать описание
Using PowerShell - Get all users, computers are disabled in domain

1. Prepare

- Syntax : Search-ADAccount

Search-ADAccount -AccountDisabled [-AuthType {Negotiate | Basic}] [-ComputersOnly] [-Credential pscredential]

[-ResultPageSizeint] [-ResultSetSize int] [-SearchBase string]

[-SearchScope {Base | OneLevel | Subtree}] [-Server string]

[-UsersOnly] [CommonParameters]

2. Step by step

- DC21 : Get all users, computers are disabled

+ Start - Windows PowerShell :

+ Search-ADAccount -AccountDisabled | FT Name,ObjectClass === Show HiepIT, VietIT and DC25

=== HiepIT, VietIT are disabled

Рекомендации по теме
Комментарии
Автор

Thank you very much, this helped me a lot.

talur
Автор

Hi is there a query to obtain a computername from username. I need to insert a user name and I need to find associated computer

nemerix