Getting a list of the local administrators is a routine security task. A popular way to do this is with EnumLocalGroup.vbs, a script written by Richard Mueller. I found that this has some error handling issues, especially where you have the problem of a nested group which creates a recursion loop.
EnumAdmins.vbs is my version of this file. Enumeration failures are logged. It only runs locally.
Hi Alan,
Is it possilble to run this for remote machines, or would it have to be run from each machine individually.
I do have a program to do this, but I will need to review it to see that it does not have any information about our infrastructure before releasing it.