Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How to find members of an AD Group who are NOT a user?

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to find members of an AD Group who are NOT a user?
  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 >>
 How to find members of an AD Group who are NOT a user? - 6/16/2008 8:35:33 PM   
  Dazman98

 

Posts: 0
Score: 0
Joined: 6/16/2008
Status: offline
Original message moved by ebgreen
Reason : Moved to proper forum
Hi All

My first post here .....

I have a VBS script that can Query AD and return all the members of an AD Group.
It successfully returns all the users, but it will not return any Security Groups that are also members.
Is there a way to do this and if so, can you please reply with your code or tips?


      

If you could help that would be great
Thanks
Dazman98
 
 
Post #: 1
 
 RE: How to find members of an AD Group who are NOT a user? - 6/17/2008 3:04:35 AM   
  dm_4ever


Posts: 2666
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Maybe try

If UCase(objMember.Class) = "USER" Then
...your code
End If

_____________________________

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 Dazman98)
 
 
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 >> How to find members of an AD Group who are NOT a user? 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