in reply to Mail & Win32

the Task Scheduler service doesn't load the user registry hive.

One way round this problem is to create a small service that can be run as the appropriate user whose hive is to be loaded and that should fix it. The Service doesn't need to do anything other than start and sit there - you will find example code all over the internet.

/J\

Replies are listed 'Best First'.
Re: Re: Mail & Win32
by Mitch (Sexton) on Jun 27, 2003 at 16:29 UTC
    It didn't work as a service being run as the needed account. I found the following, "The Outlook Object Model is unsuitable for use from an application designed to be run as, or spawned by, an Windows NT service. This includes Active Server Page (ASP) applications running under Internet Information Service (IIS), and applications being run with the AT Scheduler or Task Scheduler services. This is a design limitation of Outlook."

    http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b237913

    Mitch