how to get the local admin report

hi how we can get the local admin report in domain environments.

Hi samratmoral92,

Can you be more specific? Are you looking for a report on Local Admins for all joined domain machines, for instance?
What have you tried already?

-J

Something like this should get you started:

Invoke-Command -ScriptBlock {Get-LocalGroupMember Administrators} -ComputerName