Powershell script in VB Macro RRS feed

  • Question

  • Hello Guys,

    I have created a outlook macro .

    in one step i need to call a powershell script .

    that script need msonline module to perform the operation.

    while running the script i'm getting below error please suggest the solution .

    Import-Module : Could not load file or assembly 'file:///C:\Program Files\Windo


    tion.PSModule.dll' or one of its dependencies. An attempt was made to load a

    program with an incorrect format.

    At C:\Users\admin_de\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.p

    s1:4 char:1

    + Import-Module msonline

    + ~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : InvalidOperation: (:) [Import-Module], BadImageF


        + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Co


    Regards, Durgairaja

    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:36 PM This is not "scripts on demand"
    Friday, March 15, 2019 1:46 PM

All replies

  • This is  not an Outlook VBA forum.  You are posting in the wrong forum.


    Friday, March 15, 2019 2:28 PM