Ahhh... ok. Definitely gets me in the ballpark. But I'd like to take it one (maybe 2) step further and only see the computers that have a specific account in the local admin group. Not every account in the local admin group on every server.
That list would be crazy long (we have over 3000 servers in our environment) and super difficult to filter out in Excel (well for me anyways).
Would this get me where I need to be?
$computers = Get-ADComputer -Filter -SearchBase "My OU"
Get-WmiObject win32_groupuser -ComputerName $computers |
Where-Object {$_.groupcomponent -like '"Administrators"'} |
ForEach-Object{
where Name -match "Specific AD group"
Export-Csv -path c:\serverlist.csv -notypeinformation -append
}