Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Deleting OU with too many contacts, Doesnt work

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Deleting OU with too many contacts, Doesnt work
  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 >>
 Deleting OU with too many contacts, Doesnt work - 12/6/2006 6:34:19 AM   
  02dag

 

Posts: 2
Score: 0
Joined: 12/6/2006
Status: offline
Hi,

I am trying to delete an OU with a vbscript, but that does not work very well. I am using this command:

Set objOU = GetObject("LDAP://" & strOU & strDNSDomain)
objOU.DeleteObject(0)

The OU contains approx 42000 contacts, and my guess is that I have reached a limit somewhere, either in active directory or in the vbscript engine.

I have tried to delete every object inside the ou to pass the problem but that takes forever.

Anyone?


 
 
Post #: 1
 
 RE: Deleting OU with too many contacts, Doesnt work - 12/6/2006 11:40:55 AM   
  edavis6678

 

Posts: 121
Score: 0
Joined: 1/12/2006
Status: offline
What is the error that you receive?

(in reply to 02dag)
 
 
Post #: 2
 
 RE: Deleting OU with too many contacts, Doesnt work - 12/6/2006 8:29:00 PM   
  02dag

 

Posts: 2
Score: 0
Joined: 12/6/2006
Status: offline
Well, first of all it seems that the server gets very busy, and performance degrades. There is no error messages during script running, but if I do the same in aduc, just deleting the entire OU, a very long time passes, and then there is an error message. Cant remember what it was now, but will check it up as soon as I get home from work. Something about connect to tree item, but I will check that up tonight.

But no matter what the error message is, it clearly is a limitation here. I am pretty sure that the limitation is general type, and it could be something with either Active Directory or the scripting engine.

(in reply to edavis6678)
 
 
Post #: 3
 
 
 
  

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 >> Deleting OU with too many contacts, Doesnt work 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