I have been trying get get a script that will get the membership from the local computer's Administrators group by using an
OU full of computers. I can return the Administrators group membership from my local computer and a list of computers from an OU, can't quite figure out how to do both with resorting to AD Users & Computers and going from computer to compute

Any thoughts

Gabe

Re: local computer group membership from an OU of computers? by Al

Al
Mon May 24 22:11:55 CDT 2004


"gabe voss" <anonymous@discussions.microsoft.com> wrote in message
news:A4270D60-F41D-4342-930F-CDACA41761C3@microsoft.com...
> I have been trying get get a script that will get the membership from the
local computer's Administrators group by using an
> OU full of computers. I can return the Administrators group membership
from my local computer and a list of computers from an OU, can't quite
figure out how to do both with resorting to AD Users & Computers and going
from computer to computer
>
> Any thoughts?

You will need to use something like WMI to run a script against a remote
computer. Download the scriptomatic from http://tinyurl.com/3xxgg and play
with it for a while. It creates WMI script on the fly to get all kinds of
info from your local system. In the code you will see:

strComputer = "."

Once you find a script that gives you the kind of info you want, you can
save the script, and change "." in the above statement to specify a remote
computer. Your account may needs admin privs on the remote system to do
this.

When you customize it to do just what you want, you then modify the code
again to add your OU enumerating code to set strComputer to each name in
turn.

/Al