Skip to content

Instantly share code, notes, and snippets.

@eizedev
Created July 15, 2020 15:52
Show Gist options
  • Save eizedev/e6e0989593392bba63f50b8ff406f4f1 to your computer and use it in GitHub Desktop.
Save eizedev/e6e0989593392bba63f50b8ff406f4f1 to your computer and use it in GitHub Desktop.
Get AdminSDHolder protected AD Users
$Users = get-aduser -Filter {admincount -gt 0} -Properties adminCount -ResultSetSize $null
$Users | Select-Object Name, UserPrincipalName, SamAccountName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment