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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to pull local admin info into SQL?

Status
Not open for further replies.

geranimo666

Technical User
Sep 19, 2006
195
US
Hello-

Is there a canned script that can basically do what I wrote in the subject matter above? I am basically looking to pull admin grp info from all of my server's and pipe it into an SQL database which I've created?

Thanks for any direction
geranimo
 
What info?

I'm guessing that you want a script that connects to each server, gets the list of members of the local admins group, then connects to a SQL box and lists the servername along with the list of local admins? How does it get the server names, from AD or from a list?

 
kmcferrin-

Yes that is exactly what I am looking for. Any info would be terrific on this specific scenario.

thanks
geranimo
 
kmc-

hello again. reading your question further, I would initially like to extract the info to an sql database. eventually, (I have an inventory list in sql that already contains information) and would like to do a comparison with what new info I've extracted to the existing and place the new info into a new column in the database.

thanks again for any info
geranimo
 
KMCferrin-

you were correct with your response above, do you have any info on this situation?

Tnanks so much for your support

geranimo
 
hi dm4ever-

thanks and this is definatley close.. anyway to append to this script to capture this information on a wider scale.. i.e, capture this info for many servers that in a specific OU and then extract it into excel or SQL?

Instead of the GUI window that pops up. The ultimate thing would be to take what is extracted from Active Directory and compare it to a SQL server inventory mdb my company has and is updating just to see what server accounts are being pulled from AD and how different they are compared to this sql mdb.

All I really need is the Server name and what specific accounts are on the local box but there are many servers under one specific OU.

thanks if you can provide guidance in where I can add or modify this script.

thanks
geranimo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top