Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Clear AD Group Membership

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Clear AD Group Membership
  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 >>
 Clear AD Group Membership - 4/5/2008 7:36:21 AM   
  aburt

 

Posts: 104
Score: 0
Joined: 12/4/2006
Status: offline
Hello Gang,

I have a small script that I that is giving me strange results I was hoping someone could clarify.


If I run the code below I get an error "Object not a collection"  If I add on "On Error Resume Next"  I get "i" has a value of 1 when there are no members of the group.  Can someone clarify what I'm doing wrong.  Much appreciated.l


      
 
 
Post #: 1
 
 RE: Clear AD Group Membership - 4/6/2008 6:52:38 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
This is supposed to remove all member from the group


      

So...why are you trying to list all the members after you've cleared it?

_____________________________

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 aburt)
 
 
Post #: 2
 
 RE: Clear AD Group Membership - 4/6/2008 8:07:37 AM   
  aburt

 

Posts: 104
Score: 0
Joined: 12/4/2006
Status: offline
I am running this script through SMS sometimes when I setup a vbscript through sms for whatever reason the script does not work.  So typically what I do is create a vbscript to complete an action have the script verify the action was complete and report the results to SMS.   That way I know the script has done what I need it to do.

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Clear AD Group Membership - 4/6/2008 2:34:39 PM   
  dm_4ever


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

      

_____________________________

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 aburt)
 
 
Post #: 4
 
 
 
  

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 >> Clear AD Group Membership 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