Running Outlook as Scheduled task

Status
Not open for further replies.
M

mdlister

Afternoon,

i am looking at setting outlook up to run as a scheduled task on a

server that has an application that uses some of the API's to check the

public folders for some information. Running the application it opens

outlook does what it needs and closes.

Running the application as me in the scheduled task and in the

processes that are running i can see an outlook session and the

application running but it doesn't seem to work like it does when you

double click it.

I think its because outlook doesn't know who to open as even tho the

exe runs as me the outlook process runs as me i dont think it does and

thats whats causing the issues, is there a way to fix this with either

a outlook switch or registry setting?

mdlister
 
K

Ken Slovak - [MVP - Outlook]

Don't even think of doing that. It's a completely inappropriate use of

Outlook.

Outlook throws warnings and errors that cannot be disabled and that require

user intervention. The Outlook object model is also not at all supported for

use in a service or how you intend to use it. Use server side CDO, or

Extended MAPI or a server side access such as EWS to talk to the server. Or

you can use a 3rd party library such as Redemption

(www.dimastr.com/redemption).

If you insist on doing what you're doing it's unsupported and no one

including MS support will be able to help you.

"mdlister" <mdlister.614cc7e@outlookbanter.com> wrote in message

news:mdlister.614cc7e@outlookbanter.com...

> Afternoon,

> i am looking at setting outlook up to run as a scheduled task on a
> server that has an application that uses some of the API's to check the
> public folders for some information. Running the application it opens
> outlook does what it needs and closes.

> Running the application as me in the scheduled task and in the
> processes that are running i can see an outlook session and the
> application running but it doesn't seem to work like it does when you
> double click it.

> I think its because outlook doesn't know who to open as even tho the
> exe runs as me the outlook process runs as me i dont think it does and
> thats whats causing the issues, is there a way to fix this with either
> a outlook switch or registry setting?

> > mdlister
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
O Scheduled Task Fails running Code to send Outlook Mail from Excel. Outlook VBA and Custom Forms 9
Diane Poremsky OUTLOOK.EXE continues running after you exit Outlook Using Outlook 0
Diane Poremsky Running Outlook Macros on a Schedule Using Outlook 0
B ActiveExplorer return NULL on new Window user login and running Outlook first time Using Outlook 1
N Outlook 2007 To-Do-List status keeps running Using Outlook 2
P Outlook Macro keeps running for the same messagage Using Outlook 2
V Running scripts with Outlook 2013 Using Outlook 17
M Outlook.exe 1.2Gb memory usage if running certain BCM reports BCM (Business Contact Manager) 8
V Trouble Running Outlook 2007 and 2010 Using Outlook 4
L remove a hotmail account from Outlook 2007 running on Vista home premium Using Outlook.com accounts in Outlook 1
S Outlook 2007 Running on Windows 7 hangs on send Using Outlook 7
S ActiveExplorer return NULL on new Window user login and running Outlook first time Outlook VBA and Custom Forms 19
S Outlook rules not running automatically Using Outlook 11
L Modifying VBA script to delay running macro Outlook VBA and Custom Forms 3
A VBscript stops running after updating form Outlook VBA and Custom Forms 1
N contact notepad 'style' getting changed after clicking and running Activities Using Outlook 2
Bri the Tech Guy Run Script rule not running for newly arriving messages Outlook VBA and Custom Forms 25
S Problem running Command button code Outlook VBA and Custom Forms 2
B Automation error running VB macro code Outlook VBA and Custom Forms 8
JorgeDario Template oft that contains VBScript Is not running Using Outlook 1
M Mark Complete keyboard shortcut... on a mac running Windows Bootcamp Using Outlook 0
S The attempted operation failed ... 2nd time running code Outlook VBA and Custom Forms 3
G email returns after running macro to move emails Outlook VBA and Custom Forms 1
N Running multiple macros upon sending Outlook VBA and Custom Forms 6
M Accessing BCM with Excel / Running Reports BCM (Business Contact Manager) 1
G Error when running scanpst.exe Using Outlook 1
D Stopping "do you want to continue running scripts on this page" warnings Using Outlook 4
M Running macros in tasks sent out as meeting requests in invitees machine Using Outlook 4
N Rules stop running automatically Using Outlook 10
D VBA code running on Server? Shared mailbox email routing Using Outlook 3
T WAB editing: To help prevent malicious code from running.......... Using Outlook 18
M Why rules stop running automatically? Using Outlook 1
S CSCANPST To Automate Running SCANPST.EXE Using Outlook 1
A running code after the new inspector is visible Outlook VBA and Custom Forms 1
E Word macro running from OL VBA throwing error on Word SaveAs?? Outlook VBA and Custom Forms 8
A Running Code in Side by side calendar view Outlook VBA and Custom Forms 2
G Re:Running a Macro when email arrives Outlook VBA and Custom Forms 1
D Running a Program from Custom Action Rule Outlook VBA and Custom Forms 1
B Phantom VBA Running Outlook VBA and Custom Forms 1
G To Prevent Malicious Code from running, one or more objects in thi BCM (Business Contact Manager) 2
M If loop not running Outlook VBA and Custom Forms 1
D Troubleshooting rule/script not running Outlook VBA and Custom Forms 5
P How to use a form from a rule running on the inbox Outlook VBA and Custom Forms 1
S To help prevent malicious code from running, one or more objects in this form were not loaded. For m Outlook VBA and Custom Forms 1
Q Running the Database from a Server BCM (Business Contact Manager) 7
N Running Code before Access 2007 closes down Outlook VBA and Custom Forms 1
B Outlook 365 Populate Outlook Task UDFs from a UDF text string Outlook VBA and Custom Forms 2
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
H Outlook 2019 intermittent search results Using Outlook 0
hstein POP3 latest Outlook Using Outlook 0

Similar threads

Top