An attempt was made to load a program with an incorrect format
savaspar opened this issue · 0 comments
When I try to run the script I get the following error (pasting the whole log):
Windows PowerShell transcript start
Start time: 20240704065008
Username: THE-EYE\Savvas
RunAs User: THE-EYE\Savvas
Configuration Name:
Machine: THE-EYE (Microsoft Windows NT 10.0.19045.0)
Host Application: C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe
Process ID: 2200
PSVersion: 5.1.19041.4522
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.4522
BuildVersion: 10.0.19041.4522
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
INFO : Opening ISO win10.iso...
INFO : Looking for G:\sources\install.wim...
INFO : Looking for the requested Windows image in the WIM file
PS>TerminatingError(New-Object): "Exception calling ".ctor" with "1" argument(s): "An attempt was made to load a program with an incorrect format""
ERROR : Exception calling ".ctor" with "1" argument(s): "An attempt was made to load a program with an incorrect format"
INFO : Log folder is C:\Users\Savvas\AppData\Local\Temp\Convert-WindowsImage\b242075f-d802-4d62-8343-248fa4340068
INFO : Done.
It doesn't even start and it stops there.
Any clue of what is going on?