+ Reply to Thread
Results 1 to 2 of 2

VBScript gives error 80004005 when try to run a macro

  1. #1
    Registered User
    Join Date
    01-30-2019
    Location
    Mexico
    MS-Off Ver
    2007
    Posts
    3

    VBScript gives error 80004005 when try to run a macro

    Hi
    I have a macro to send a reminder mail each day, and I want to run through the task manager. I create the macro, then a short vbscript in order to run the macro.
    When I click on the vbscript manually runs without any trouble, but when scheduled the task on the task scheduler gives me the next error

    error '-2147467259(80004005) on execution time: Server Execution Error or something like that

    I even made a pretty small macro only sending a small range into the mail body and happens the same. If I run the vbscript manually runs ok, but through the task scheduler send me the same error.

    This is the small macro



    Somebody that might Knows what is wrong?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: VBScript gives error 80004005 when try to run a macro

    I'm no expert on scripting, but are you running the scheduled task as the SYSTEM user/account or some other account with insufficient privileges? Perhaps try setting it to use your (or an admin) account.

    I did find this thread elsewhere, and while a different error code is listed, it does sound similar to your issue:
    https://stackoverflow.com/questions/...task-scheduler

    They recommend checking security settings on the script/task, use the correct (32-bit vs. 64-bit) version of wscript, or switch to cscript.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  2. Run time error'-2147467259(80004005)':
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2014, 12:27 AM
  3. run-time error '-2147467259(80004005)':
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2014, 03:46 AM
  4. [SOLVED] Run-time error '-2147467259(80004005)'
    By Lloyd Blankfein in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-14-2013, 01:52 PM
  5. [SOLVED] Error -2147467259 (80004005) Powerpoint could not open the file
    By Tsjallie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-11-2013, 04:27 PM
  6. Run time error - (-2147467529 (80004005)
    By shekar.ssg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2012, 04:30 AM
  7. .MajorUnitScale = xlMonthy -2147467259 (80004005) Error
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2012, 09:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1