Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


List Local Admin Group script AGAINST OU

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,60716
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> List Local Admin Group script AGAINST OU
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 List Local Admin Group script AGAINST OU - 5/26/2008 8:42:33 PM   
  mariuszp

 

Posts: 4
Score: 0
Joined: 5/26/2008
Status: offline
Greetings every1
I'm having problem with a critical task in my company.
We are part of a huge network group and own just one OU.
Under this OU we have 150 Computer accounts and I really can't see my self to visit each computer and check who's got local admin rights.

I did a look up on the internet to find out if there is a script to run.

However, all I found was a pcs of scripts to run against the WHOLE DOMAIN.

Could anyone just tell me if it is possible to adapt such a script to run against a particular OU ?

Could any1 tell me if this is at least possible, or what are the other methods / solutions I could do ?


Thank you in advance,
Mariusz
 
 
Post #: 1
 
 RE: List Local Admin Group script AGAINST OU - 6/1/2008 2:25:18 PM   
  SAPIENScripter


Posts: 275
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
There are plenty of ways to do this from using ADSI to DSFIND.  I suppose the "right" way depends on what you need to do and what scripting/management tool you want to use: CMD, VBScript, PowerShell...

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to mariuszp)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> List Local Admin Group script AGAINST OU Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts