Error no: -2147024809 / ID no: c1032227
From: Radovan Vojtek (RadovanVojtek_at_discussions.microsoft.com)
Date: 10/19/04
- Next message: BRINO: "How to block a MAIL FORWARD RULE"
- Previous message: Candee: "Re: Help ... Event ID: 2061"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: BRINO: "How to block a MAIL FORWARD RULE"
- Previous message: Candee: "Re: Help ... Event ID: 2061"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|