Problem with SMTPreg scripts

Posted on 2009-02-09
Last Modified: 2013-11-05
We have upgraded our servers from 2003 to 2008 64Bit. When I run the instal script with is below I get a Type Mismatch error for this line of code

     Set GetBindings = oSource.GetBindingManager.Bindings(catidEventType)

cscript SMTPreg.vbs /add 2 OnArrival SMTPScriptingHost CDO.SS_SMTPOnArrivalSink "mail from=*"

cscript SMTPreg.vbs /setprop 2 OnArrival SMTPScriptingHost Sink ScriptName "D:\Mail\mailjobs\onarrival.vbs"

Open in new window

Question by:julianpointer
    LVL 22

    Expert Comment

    Was the old server a 32 bit?
    If you are migrating from a 32 bit to a 64 bit then I don't know if the registry settings are going to import this way.  
    On a 64 bit machine, it will run 32 bit code but it is in a compatibility mode.  The registry and its settings are set up to handle 64 bit applications as the default.  
    You might need to modify your files to change the registry paths they are referencing to make a 32 bit reference work on a 64 bit machine.
    LVL 3

    Author Comment

    Yes the old server was 32bit... I dont think registry setting are the problem... we didnt move any over.

    Has anybody used smtpreg.vbs on a 64bit 2008 server?
    LVL 22

    Accepted Solution

    Check out this page ... they appear to be doing what you are trying to do.

    One question, from looking at their config and instructions ... is the drive and path to the .vbs file in the second command correct?  This is the only thing that I see that might be causing a problem.

    Featured Post

    Are end users causing IT problems again?

    You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

    Join & Write a Comment

    Use email signature images to promote corporate certifications and industry awards.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now