Home  
  Microsoft  
  Cisco  
  CompTIA  
  CWNP  
  InfoSecurity  
  Forums  
  Blogs  
  Topsites  
  Watch free videos online  
     
  Subnet Calculator  
  Online Degrees  
  Exam Vouchers  
  Free Magazines  
     

  Watch free videos online  
   

 

Coffee Addict
 
coffeeking's Avatar
 
Join Date: Feb 2008
Location: WORLD
Posts: 296

Certifications: BSIT from OIT, CCNA, CCNA:Sec, SECURITY+, MCITP: SQL SRVR 2008
coffeeking will become famous soon enough
Old 08-03-2009, 06:30 AM   #1 (permalink)
Default Finding Local Admins on 3000+ machines

Heah All,

I have been asked to find a script or a way to find out all the members who are Local Admins on their machines. There are more than 3000 members in out organization. We also use a AD monitoring software by Quest software but it is just a monitoring and reporting and tool and not an auditing tool.

Any recommendations will be greatly appreciated.

coffeeking is offline   Reply With Quote

Login/register to remove this advertisement.
Its all smoke and mirrors
 
dales's Avatar
 
Join Date: Jan 2008
Posts: 149

Certifications: VCP,MCSA, MCDST, MCP, A+ 2003, ITIL V3 F, MBCS
dales is on a distinguished road
Send a message via MSN to dales Send a message via Skype™ to dales
Old 08-03-2009, 07:30 AM   #2 (permalink)

I've just done exactly the same thing at work, I'm not very good at scripting but managed to come up with this logon script to detect who has local admins then distributed a script to remove it from the naughty users.

Remove Admin Rights Scripts Dales-Diary

Probably not the best way of doing it but it may give you something to work with.



__________________
Kind Regards
Dale Scriven

Twitter:dscriven
Blog: dales-diary.co.uk

dales is offline   Reply With Quote
Coffee Addict
 
coffeeking's Avatar
 
Join Date: Feb 2008
Location: WORLD
Posts: 296

Certifications: BSIT from OIT, CCNA, CCNA:Sec, SECURITY+, MCITP: SQL SRVR 2008
coffeeking will become famous soon enough
Old 08-03-2009, 08:29 AM   #3 (permalink)

Dale,

thanks for your recommendation, it looks quite simple but I am having a hard time finding isadmin.exe. will let you know once I find it and am able to run the script.

coffeeking is offline   Reply With Quote
Coffee Addict
 
coffeeking's Avatar
 
Join Date: Feb 2008
Location: WORLD
Posts: 296

Certifications: BSIT from OIT, CCNA, CCNA:Sec, SECURITY+, MCITP: SQL SRVR 2008
coffeeking will become famous soon enough
Old 08-03-2009, 09:26 AM   #4 (permalink)

Hey Dale,

I was able to find isadmin and blat and ran the script but it only returns the output for current user, here is what it shows:

Current user is an administrator

I know I am missing a piece in there, I am trying to get it for all machines in a given domain.

coffeeking is offline   Reply With Quote
Senior Member
 
Join Date: Jan 2009
Posts: 291

Certifications: A+, Network +, MCSE 2003, CCNA:S
rwwest7 will become famous soon enough
Old 08-03-2009, 10:05 AM   #5 (permalink)

Quote:
Originally Posted by dales View Post
I've just done exactly the same thing at work, I'm not very good at scripting but managed to come up with this logon script to detect who has local admins then distributed a script to remove it from the naughty users.

Remove Admin Rights Scripts Dales-Diary

Probably not the best way of doing it but it may give you something to work with.
You can do the exact same thing with a GPO. Restricted Groups I believe is the setting.

rwwest7 is offline   Reply With Quote
Its all smoke and mirrors
 
dales's Avatar
 
Join Date: Jan 2008
Posts: 149

Certifications: VCP,MCSA, MCDST, MCP, A+ 2003, ITIL V3 F, MBCS
dales is on a distinguished road
Send a message via MSN to dales Send a message via Skype™ to dales
Old 08-03-2009, 10:41 AM   #6 (permalink)

Yes what actually I think you may need to do is change the %nwusername% bits to %username%. We run a netware shop so my particular issue was getting which machine was running admin and who was logging into it as such. %nwusername% tells me the netware cred %username% should tell you the AD user cred.

As I say its a bit scrappy and not the most elegant way of doing things but it works ok for me until I learn a better way.



__________________
Kind Regards
Dale Scriven

Twitter:dscriven
Blog: dales-diary.co.uk

dales is offline   Reply With Quote
Its all smoke and mirrors
 
dales's Avatar
 
Join Date: Jan 2008
Posts: 149

Certifications: VCP,MCSA, MCDST, MCP, A+ 2003, ITIL V3 F, MBCS
dales is on a distinguished road
Send a message via MSN to dales Send a message via Skype™ to dales
Old 08-03-2009, 10:43 AM   #7 (permalink)

Quote:
Originally Posted by rwwest7 View Post
You can do the exact same thing with a GPO. Restricted Groups I believe is the setting.
Good point not sure how that works as above we are a netware shop so group policy implimentation is sketchy at best and I needed to be sure I got everyones level of access.



__________________
Kind Regards
Dale Scriven

Twitter:dscriven
Blog: dales-diary.co.uk

dales is offline   Reply With Quote
Coffee Addict
 
coffeeking's Avatar
 
Join Date: Feb 2008
Location: WORLD
Posts: 296

Certifications: BSIT from OIT, CCNA, CCNA:Sec, SECURITY+, MCITP: SQL SRVR 2008
coffeeking will become famous soon enough
Old 08-03-2009, 02:32 PM   #8 (permalink)

Quote:
Originally Posted by dales View Post
Yes what actually I think you may need to do is change the %nwusername% bits to %username%. We run a netware shop so my particular issue was getting which machine was running admin and who was logging into it as such. %nwusername% tells me the netware cred %username% should tell you the AD user cred.

As I say its a bit scrappy and not the most elegant way of doing things but it works ok for me until I learn a better way.
Thanks Dale, will try that and let you know.

one quick question and this might be very basic one since I am not very familiar with the whole process yet; I ran the script from my machine that is just one of the machines in the same domain and I am admin on my machine. so if I changed the %nwusername% to %username%, do you think it would still give the information for all workstations on that domain?

coffeeking is offline   Reply With Quote
Its all smoke and mirrors
 
dales's Avatar
 
Join Date: Jan 2008
Posts: 149

Certifications: VCP,MCSA, MCDST, MCP, A+ 2003, ITIL V3 F, MBCS
dales is on a distinguished road
Send a message via MSN to dales Send a message via Skype™ to dales
Old 08-03-2009, 06:59 PM   #9 (permalink)

Quote:
Originally Posted by coffeeking View Post
Thanks Dale, will try that and let you know.

one quick question and this might be very basic one since I am not very familiar with the whole process yet; I ran the script from my machine that is just one of the machines in the same domain and I am admin on my machine. so if I changed the %nwusername% to %username%, do you think it would still give the information for all workstations on that domain?
yes that should work you will obviously need to distribute the script by group policy.



__________________
Kind Regards
Dale Scriven

Twitter:dscriven
Blog: dales-diary.co.uk

dales is offline   Reply With Quote
Drops by now and again
 
astorrs's Avatar
 
Join Date: May 2008
Location: Vancouver, Canada
Posts: 3,059

Certifications: n+1
astorrs is a glorious beacon of lightastorrs is a glorious beacon of lightastorrs is a glorious beacon of lightastorrs is a glorious beacon of lightastorrs is a glorious beacon of light
Send a message via MSN to astorrs
Old 08-03-2009, 09:07 PM   #10 (permalink)

I have a script to do it. PM me your email coffeeking and I'll send it to you.

astorrs is offline   Reply With Quote
Bookmarks
Go Back TechExams.net IT Certification Forums > Microsoft > MCSA / MCSE on Windows 2003 General > 70-294 AD Infra
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 07:42 AM.

 
 
Featured Sponsors

TrainSignal - “Hands On” computer training for IT professionals. Network+ Training, MCSE, Cisco & more! Visit Train Signal’s free training site to get loads of Free Computer Training, videos, articles and practice exams.

Preplogic - Sign up now to get Unlimited Access to PrepLogic's entire video training library. Enjoy open access to Microsoft Server 2008, CCNA, CISSP®, PMP and many more. Get Unlimited Access

 

Powered by vBulletin® Version 3.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
TechExams.net © 2002 - 2010