Easy-GPU-PV
Easy-GPU-PV copied to clipboard
ERROR : Cannot index into a null array.
PS C:\Users\Mystogane\Downloads\Easy-GPU-PV-main> C:\Users\Mystogane\Downloads\Easy-GPU-PV-main\CopyFilesToVM.ps1
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 : Opening ISO Win11_22H2_EnglishInternational_x64v2.iso... INFO : Looking for D:\sources\install.wim... INFO : Looking for the requested Windows image in the WIM file INFO : Image 6 selected (Professional)... INFO : Creating sparse disk... INFO : Mounting VHDX... INFO : Initializing disk... INFO : Creating EFI system partition... INFO : Formatting system volume... INFO : Setting system partition as ESP... INFO : Creating MSR partition... INFO : Creating windows partition... INFO : Formatting windows volume... ERROR : Cannot index into a null array. INFO : Log folder is C:\Users\MYSTOG~1\AppData\Local\Temp\Convert-WindowsImage\bde4121f-f18b-4415-b4cd-2237f4a53e19 INFO : Closing Windows image... INFO : Done. Failed to create VHDX, stopping script
what version of windows?
what version of windows?
Windows 11 Pro
I also am running into an identical issue. Happens both when using a Windows 11 22H2 ISO from Microsoft's website and from Rufus.
Hello! I had the same problem and fixed it by changing a line in the CopyFilesToVM.ps1 script. On line 2228, I replaced "$windowsDrive = $(Get-Partition -Volume $windowsVolume).AccessPaths[0].substring(0,2)" with "$windowsDrive = $windowsPartition.AccessPaths[0].substring(0,2)", and then it worked for me. I'm not sure why the "Get-Partition" command didn't return anything, but for now, this solution works.