Using powershell I'd like to get a list of people who have admin privileges for a domain?
18,345
get-adgroupmember 'domain admins' | select name,samaccountname
get-adgroupmember 'enterprise admins' | select name,samaccountname
Author by
Pradipta
Updated on June 17, 2022Comments
-
Pradipta almost 2 years
I'd like to get a list of all people with admin privileges with powershell. What is the most optimal way to accomplish that? Which user property should I look at?