Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


AD Members not in Group

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> AD Members not in Group
  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 >>
 AD Members not in Group - 9/14/2007 1:44:34 AM   
  xneilpetersonx

 

Posts: 3
Score: 0
Joined: 7/23/2007
Status: offline
        Does anyone have a script sample I can look at that will enumerate all AD users that are not in a specific AD group? I've got several that will show mae all users of a group but can't come up with one that will show me all users not in a group.

thanks

neilp
 
 
Post #: 1
 
 RE: AD Members not in Group - 9/17/2007 4:38:56 AM   
  dm_4ever


Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I would query all users and add them to an array or dictionary and then query the specific group and add those names to an array or dictionary and then find which are missing.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to xneilpetersonx)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> AD Members not in Group 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