Get-AppxPackage : An attempt was made to load a program with an incorrect format

Discussion in 'Windows 11' started by AsaadSoft, Oct 22, 2022.

  1. AsaadSoft

    AsaadSoft MDL Addicted

    Jul 29, 2015
    505
    163
    30
    Get-AppxPackage : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
    At line:1 char:1
    + Get-AppxPackage | Select Name, PackageFullName
    + ~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: ( : ) [Get-AppxPackage], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPac
    kageCommand


    Screenshot 2022-10-22 034736.jpg
     
  2. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,396
    1,322
    120
    #2 kaljukass, Oct 22, 2022
    Last edited: Oct 22, 2022
    Looks like you typed the wrong command
    What do you want to receive and what command did you use?
    Do you want to receive the data of all installed packages distributed to one specific user or to all users?

    Maybe something like this
    Code:
    cd C:\    and click ENTER
    You'll get
    PS C:\Windows\system32> cd C:\
    PS C:\>
    Now enter one of the following codes and click ENTER
    Get-AppxPackage
    or
    Get-AppxPackage -AllUsers
    or
    Get-AppxPackage -User "some username"
    or or if you want only some special data, then specify, for example
    Get-AppXPackage -AllUsers | Select Name, PackageFullName
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,753
    5,214
    120

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...