Link to home
Start Free TrialLog in
Avatar of julianpointer
julianpointer

asked on

Problem with SMTPreg scripts

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

Avatar of cj_1969
cj_1969
Flag of United States of America image

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.
Avatar of julianpointer
julianpointer

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of cj_1969
cj_1969
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial