I need to produce a report that lists all of the members of each server's Administrators group. I can use local admin accounts on these servers. Has anyone written something I can deploy as a template & then report, please?
Need this also. Have you made anything to do this?
This is geared more towards an SCM use case but you can use the following script as a PowerShell component monitor, it will give you a count and a message will list out the members
$groupmembers=Get-LocalGroupMember -Group "Administrators" | Select-Object Name | Out-StringWrite-Host "Statistic: $($groupmembers.count)"Write-Host "Message: $($groupmembers)"