List all Domain and Enterprise Admins
Wer wissen möchte wie viele aktive Domänen und Enterprise Admins es gibt, führt folgende Befehle zur Abfrage aus.
Englisches OS:
Get-ADGroupMember -Identity “Domain Admins” -Recursive | %{Get-ADUser -Identity $_.distinguishedName} | Select Name, Enabled
Get-ADGroupMember -Identity “Enterprise Admins” -Recursive | %{Get-ADUser -Identity $_.distinguishedName} | Select Name, Enabled
Deutsches OS:
Get-ADGroupMember -Identity “Domänen-Admins” -Recursive | %{Get-ADUser -Identity $_.distinguishedName} | Select Name, Enabled
Get-ADGroupMember -Identity “Organisations-Admins” -Recursive | %{Get-ADUser -Identity $_.distinguishedName} | Select Name, Enabled