Error no: -2147024809 / ID no: c1032227

From: Radovan Vojtek (RadovanVojtek_at_discussions.microsoft.com)
Date: 10/19/04


Date: Tue, 19 Oct 2004 06:35:14 -0700

Hi all!

Does anybody the experience with following:

I wrote an VB script for enabling user accounts and creating mailbox for it
(AD 2003 native, Exchange 2003 native). Until some time ago (do not know
exactly - may be two or three weeks) it worked without any problems. But
today we need to enable another account and create an mailbox for it, and the
VB script terminated with an error:

Error no: -2147024809
Error Desc.: The object is of the wrong object class.
ID no: c1032227
Microsoft CDO for Exchange Management

The relevant VBS code is following:

-----
Set objUser = GetObject("LDAP://" & strDN)
objUser.AccountDisabled = False
objUser.SetInfo
objUser.CreateMailbox "LDAP://" & strStore & ",CN=InformationStore,CN=" &
strServerName & ",CN=Servers,CN=First Administrative Group,CN=Administrative
Groups,CN=" & strOrgName & ",CN=Microsoft
Exchange,CN=Services,CN=Configuration," & strDomainDN
objUser.SetInfo
-----

The error occures on the "CreateMailbox" line of code, the string given to
CreateMailbox function is proper. What's strange - account is correctly
enabled and if I remove "CreateMailbox" line, the script terminates
correctly! Nothing more can be found in Event Log :(

Any hits? I'm really confused and do not know what to change...

-- 
R.V.


Relevant Pages

  • Re: Dealing with Bounced Email
    ... >> an account that will be monitored by a script: ... >Okay, but, how does one set up a PHP script to monitor bounced email ... which polls a mailbox using POP3, IMAP, or just opens the mailbox ...
    (comp.lang.php)
  • Re: Store event sink wont fire
    ... Sometimes I've seen antivirus programs quarantine the script code so you end ... to test this is try creating an outlook profile to the mailbox with the ... event sink using the account that your Com object is running under and see ... I'd also make sure the account has full mailbox access (not ...
    (microsoft.public.exchange2000.development)
  • Re: Creation of a New Mailbox on a existing User
    ... Currently I have to do it manually>via the Exchange Tasks wizzard and Create Mailbox task. ... But the extra information that I had to add to each>account was what took up all the time. ... >>I have created a script that will add in that extra information but I>also want it to go and create the mailbox account. ...
    (microsoft.public.exchange.admin)
  • Creation of a New Mailbox on a existing User
    ... via the Exchange Tasks wizzard and Create Mailbox task. ... account was what took up all the time. ... I have created a script that will add in that extra information but I ...
    (microsoft.public.exchange.admin)
  • Protecting against dDOS bots (was: Newbie php problem)
    ... The form mail script posted that was used, ... requires the applicant to pass some kind of Turing test, ... Turing test if the account balance ever drops to zero. ... Log into the same account repeatedly, which consumes your credit ...
    (alt.php)