Easy-GPU-PV icon indicating copy to clipboard operation
Easy-GPU-PV copied to clipboard

Error: The parameter is incorrect.

Open Doge5678 opened this issue 3 years ago • 24 comments

INFO : Looking for the requested Windows image in the WIM file ERROR : The parameter is incorrect. log just says that it does not specify which param is incorrect params:

$params = @{
    VMName = "GPUP"
    SourcePath = "C:\Win11_EnglishInternational_x64.iso"
    Edition    = 6
    VhdFormat  = "VHDX"
    DiskLayout = "UEFI"
    SizeBytes  = 70GB
    MemoryAmount = 4GB
    CPUCores = 4
    NetworkSwitch = "Default Switch"
    UnattendPath = "$PSScriptRoot"+"\autounattend.xml"
    GPUName = "AUTO"
    GPUResourceAllocationPercentage = 50
    Team_ID = "0"
    Key = "0"
    Username = "GPUVM"
    Password = "CoolestPassword!"
    Autologon = "true"
}

Doge5678 avatar Jan 10 '22 21:01 Doge5678

i tried nearly 5 iso's including windows 10 and windows 11 ones with different versions all of them downloaded from direct iso links not media creation tool

Doge5678 avatar Jan 10 '22 21:01 Doge5678

Have you tried using an edition lower than 6? I had the problem that edition 6 was in my case Professional N instead of just Professional (german Windows 10 ISO)

carrierfry avatar Jan 11 '22 08:01 carrierfry

Have you tried using an edition lower than 6? I had the problem that edition 6 was in my case Professional N instead of just Professional (german Windows 10 ISO)

I tried only professional ones I tried changing the value to 4 2 and 0 nothing changed sadly still same

Doge5678 avatar Jan 11 '22 09:01 Doge5678

Have you tried using an edition lower than 6? I had the problem that edition 6 was in my case Professional N instead of just Professional (german Windows 10 ISO)

what value did you try is it fixed now

Doge5678 avatar Jan 11 '22 09:01 Doge5678

I used 5 for the edition. But 6 worked for me too, it just wasn't the version I wanted

carrierfry avatar Jan 11 '22 09:01 carrierfry

I used 5 for the edition. But 6 worked for me too, it just wasn't the version I wanted

5 didn't worked for me I tried windows 11 professional english also on windows 10 I will try downloading the iso from another place

Doge5678 avatar Jan 11 '22 10:01 Doge5678

I think its because combined versions of iso like pro home n the newer isos are coming this way it's nearly impossible to find just home or pro iso of windows I'm still trying to find it ill write again after testing

Doge5678 avatar Jan 11 '22 14:01 Doge5678

I separated iso with ntlite but that didn't work too

Doge5678 avatar Jan 11 '22 20:01 Doge5678

@Doge5678 there is no log here, you need to go to the folder the script tells you about in Windows, there will be a log.txt file...

jamesstringerparsec avatar Jan 15 '22 18:01 jamesstringerparsec

@Doge5678 there is no log here, you need to go to the folder the script tells you about in Windows, there will be a log.txt file...

sorry for that providing it now is log file contains any private thing

Doge5678 avatar Jan 15 '22 18:01 Doge5678

There is nothing private in it

On Sat, 15 Jan 2022, 19:06 Doge5678, @.***> wrote:

@Doge5678 https://github.com/Doge5678 there is no log here, you need to go to the folder the script tells you about in Windows, there will be a log.txt file...

sorry for that providing it now is log file contains any private thing

— Reply to this email directly, view it on GitHub https://github.com/jamesstringerparsec/Easy-GPU-PV/issues/47#issuecomment-1013727372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGBUNQU36DDTZAW67JCINTUWGZT3ANCNFSM5LUWLLMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jamesstringerparsec avatar Jan 15 '22 18:01 jamesstringerparsec

@Doge5678 there is no log here, you need to go to the folder the script tells you about in Windows, there will be a log.txt file...

**********************
Windows PowerShell transcript start
Start time: 20220115210816
Username: DESKTOP-4******\doge
RunAs User: DESKTOP-4*****\doge
Configuration Name: 
Machine: DESKTOP-4****** (Microsoft Windows NT 10.0.19044.0)
Host Application: C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe
Process ID: 10484
PSVersion: 5.1.19041.1320
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.1320
BuildVersion: 10.0.19041.1320
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
INFO   : Looking for the requested Windows image in the WIM file
PS>TerminatingError(Get-WindowsImage): "Parametre hatalı.
"
ERROR  : Parametre hatalı. *(parameter incorrect in turkish)*
INFO   : Log folder is C:\Users\doge\AppData\Local\Temp\Convert-WindowsImage\14a1cd78-01c9-454d-8b4c-8f460e4e7902
INFO   : Done.
**********************
Windows PowerShell transcript end
End time: 20220115210817
**********************

I censored desktop name just to be sure I'm suspecting that it has to do with windows language or local decimal character changes

Doge5678 avatar Jan 15 '22 18:01 Doge5678

@Doge5678 there is no log here, you need to go to the folder the script tells you about in Windows, there will be a log.txt file...

changing my windows language and regional format from tr-TR to en-EN solved the issue

Doge5678 avatar Jan 15 '22 18:01 Doge5678

Confusingly i downloaded "Win11_Turkish_x64v1.iso" and it worked without issue...

jamesstringerparsec avatar Jan 15 '22 18:01 jamesstringerparsec

what settings are you guys using to download the win11 iso? are you using rufus? what can you screenshot the settings?

jamesstringerparsec avatar Jan 15 '22 18:01 jamesstringerparsec

the issue is not the iso language its the host systems language that we run the script because I tried different language isos before and I was getting the same error even with english international iso

Confusingly i downloaded "Win11_Turkish_x64v1.iso" and it worked without issue...

what settings are you guys using to download the win11 iso? are you using rufus? what can you screenshot the settings?

Doge5678 avatar Jan 15 '22 20:01 Doge5678

Please try again by downloading the script from the GitHub repo again and running it with Turkish language windows iso

On Sat, 15 Jan 2022, 21:25 Doge5678, @.***> wrote:

the issue is not the iso language its the host systems language that we run the script because I tried different language isos before and I was getting the same error even with english international iso

Confusingly i downloaded "Win11_Turkish_x64v1.iso" and it worked without issue...

what settings are you guys using to download the win11 iso? are you using rufus? what can you screenshot the settings?

— Reply to this email directly, view it on GitHub https://github.com/jamesstringerparsec/Easy-GPU-PV/issues/47#issuecomment-1013748736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGBUNTVGALQZMCOGJA2EC3UWHJZZANCNFSM5LUWLLMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jamesstringerparsec avatar Jan 15 '22 20:01 jamesstringerparsec

Please try again by downloading the script from the GitHub repo again and running it with Turkish language windows iso

ok trying now

Doge5678 avatar Jan 15 '22 20:01 Doge5678

Please try again by downloading the script from the GitHub repo again and running it with Turkish language windows iso Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 10 Copyright (C) Microsoft Corporation. All rights reserved. Version 10.0.14278.1000.amd64fre.rs1_es_media.160201-1707

INFO : Looking for the requested Windows image in the WIM file ERROR : Exception calling ".ctor" with "1" argument(s): "Geçersiz biçimdeki bir program yüklenmek istendi" (An attempt was made to install a program in an invalid format) INFO : Log folder is C:\Users\Doge\AppData\Local\Temp\Convert-WindowsImage\e2844fcc-a104-46ab-8857-ca4fbcca8dad INFO : Done. Failed to create VHDX, stopping script

Doge5678 avatar Jan 15 '22 20:01 Doge5678

OK, thank you, looks like it got further but failed for a different reason

jamesstringerparsec avatar Jan 15 '22 20:01 jamesstringerparsec

also what fixed for me was changing my display language and regional formatting to english in my host machine I don't think its just because of iso

OK, thank you, looks like it got further but failed for a different reason

no problem ready for helping if you want further testing

Doge5678 avatar Jan 15 '22 20:01 Doge5678

Did anyone manage to find a fix for the last issue that Doge reported?

ERROR : Exception calling ".ctor" with "1" argument(s): "An attempt was made to install a program in an invalid format".

Im stuck at the same point atm.

lucastcarvalho avatar Jan 08 '23 06:01 lucastcarvalho

@Doge5678 bu sorunları çözebıldın mı ?

mustafa8519 avatar Jul 20 '23 11:07 mustafa8519

For the

ERROR : Exception calling ".ctor" with "1" argument(s): "An attempt was made to install a program in an invalid format".

the issue is the install.wim file Use Ntlite to fix it.

  1. Add ISO
  2. New Edit
  3. Convert to WIM Replace original image
  4. Create ISO

GreeyChip avatar Aug 14 '23 10:08 GreeyChip