none
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

    wsPowerShell\Modules\msonline\1.1.183.17\Microsoft.Online.Administration.Automa

    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

       ormatException

        + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Co

       mmands.ImportModuleCommand


    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