none
800A01AD under non administrator account on TS 2008 / VBScript RRS feed

  • Question

  • Hello,

    I've been searching a solution about the error : ActiveX can't create object Outlook.Application for hours.

    Here's my simple code :

    Set objOutlook = CreateObject("Outlook.Application")
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    objOutlookMsg.To = "someemail@domain.com"
    objOutlookMsg.Subject = "subject"
    objOutlookMsg.Body = "body"
    objOutlookMsg.Display               
    

    This code works pretty well for a user with administrative privilege on a TS 2008 but fails to execute with the 800a01AD error for a regular TS user.

    Permission issue ? Thanks for your help on this.

    Sunday, June 17, 2012 12:08 AM

Answers

  • A registry key was missing.

    Fixed by importing this following reg :

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Outlook.Application]
    @="Microsoft Outlook 12.0 Object Library"

    [HKEY_CLASSES_ROOT\Outlook.Application\CLSID]
    @="{0006F03A-0000-0000-C000-000000000046}"

    [HKEY_CLASSES_ROOT\Outlook.Application\CurVer]
    @="Outlook.Application.12"

    Wednesday, June 20, 2012 9:13 AM

All replies

  • Hi N_S,

    Thanks for posting in the MSDN Forum.

    You snippet has no error. It's based on my experience that the key is on the TS 2008's security setting.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, June 18, 2012 6:59 AM
    Moderator
  • A registry key was missing.

    Fixed by importing this following reg :

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Outlook.Application]
    @="Microsoft Outlook 12.0 Object Library"

    [HKEY_CLASSES_ROOT\Outlook.Application\CLSID]
    @="{0006F03A-0000-0000-C000-000000000046}"

    [HKEY_CLASSES_ROOT\Outlook.Application\CurVer]
    @="Outlook.Application.12"

    Wednesday, June 20, 2012 9:13 AM