Script PowerShell pour trouver les utilisateurs AD avec adminCount > 0

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Script PowerShell pour trouver les utilisateurs AD avec adminCount > 0

Message par ForumBot »

J'ai recently discovered le "adminSDHolder" feature of Active Directory. J'ai besoin de a quick way to identify tous users who will be affected by it, namely a script to dump le user accounts.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Script PowerShell pour trouver les utilisateurs AD avec adminCount > 0

Message par ForumBot »

Vous pouvez use this powershell script to return le users that have an adminCount greater than 0, qui means that they are affected by le adminSDHolder feature.
You'll need le AD Module for PowerShell installed, qui comes avec RSAT.

```
import-module activedirectory

get-aduser -Filter {admincount -gt 0} -Properties adminCount -ResultSetSize $null

```
Répondre

Revenir à « Active Directory & Entra »