Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Create mailbox - error code 80072030

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Create mailbox - error code 80072030
  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 >>
 Create mailbox - error code 80072030 - 1/18/2007 10:35:38 PM   
  Zolta

 

Posts: 13
Score: 0
Joined: 11/29/2006
Status: offline
Hi,

I am trying to create a mailbox with vb script. The  So far I have used this site http://mcpmag.com/columns/article.asp?EditorialsID=615&page=1#post to get me going.

But I got stuck with this error: http://img92.imageshack.us/img92/315/userscripton2.jpg

I've read about it, and used different things in my script but first I need to know why it's stuck.

The error refers to this:

objUser.CreateMailbox MBXStoreDN

I can't seem to find why it can't find the ObjUser. Or anything that could be mis-spelt.

Any help welcome. I'm working with Windows server 2003, Exchange 2003

cheers


      

< Message edited by Zolta -- 1/19/2007 1:28:20 AM >
 
 
Post #: 1
 
 RE: Create mailbox - error code 80072030 - 1/19/2007 2:12:36 AM   
  dm_4ever


Posts: 2172
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
I've never tried this, but looking at the page you referenced you'll see that the author does not use the same user object to create the mailbox.

Looking at the example, I think it should look something like this for you:


      

_____________________________

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 Zolta)
 
 
Post #: 2
 
 RE: Create mailbox - error code 80072030 - 1/21/2007 10:25:39 PM   
  Zolta

 

Posts: 13
Score: 0
Joined: 11/29/2006
Status: offline
Thanks for your help.

I didn't think it would make a difference, I tried it as well but I still get the same error at

objExchUser.CreateMailbox MBXStoreDN
 
(line x, char 1)
 
Maybe the MBXStoreDN is wrong. Altough I used ldifde to get the ldap command.... oh well i'll look over it one more time

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Create mailbox - error code 80072030 - 1/22/2007 1:04:25 AM   
  SAPIENScripter


Posts: 270
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
You'll need CDOEXM for the code to work.  Are you running the script on the Exchange server? You don't have to be. But you need to run it on a computer that has the Exchange Management tools installed.

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to Zolta)
 
 
Post #: 4
 
 RE: Create mailbox - error code 80072030 - 1/22/2007 2:34:02 AM   
  Zolta

 

Posts: 13
Score: 0
Joined: 11/29/2006
Status: offline
>____________<


Never mind, problem solved. Just should've removed the " & " characters as well.

* cries in a corner and feels ashamed

(in reply to SAPIENScripter)
 
 
Post #: 5
 
 
 
  

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 >> Create mailbox - error code 80072030 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