Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retreive Local Administrator Groups

Status
Not open for further replies.

jwashburn

MIS
Jun 20, 2003
4
US
I have been taking apart some scripts to begin how to understand them. I have all the pieces I need but I cant seem to put them together. I need to retreive the members of the local administrators group on all the workstations in my domain. I have created a text file called workstations.dat that contains a list of every single workstation in my domain. I think I want to use the tool called local from the 2000 resource kit. I know it works because I can from a command prompt get the information i want but for only one machine at a time. What I am trying to accomplish is for the script to read my dat file and run the tool against the names in that file and then output to a text or excel, or html page.
 
The way I understand it, I have to gather the information from the text file. Then execute the local tool against that and then output the data.
 
Look up Win32::AdminMisc

It should be all you need

HTH
Paul

Search this forum for admin::misc, or look for the FAQ on dave roth's page

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top