jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4k stars 406 forks source link

Cannot bind argument to parameter 'ImagePath' because it is an empty string. #354

Open 3lobytekagan opened 5 months ago

3lobytekagan commented 5 months ago

Error: Cannot bind argument to parameter 'ImagePath' because it is an empty string. $params = @{ VMName = "GPUPV" SourcePath = "C:\Users\Kağan\Downloads\Win10_22H2_EnglishInternational_x64v1.iso" Edition = 6 VhdFormat = "VHDX" DiskLayout = "UEFI" SizeBytes = 40GB MemoryAmount = 8GB CPUCores = 4 NetworkSwitch = "Default Switch" VHDPath = "D:\iso\V" UnattendPath = "$PSScriptRoot"+"\autounattend.xml" GPUName = "AUTO" GPUResourceAllocationPercentage = 50 Team_ID = "" Key = "" Username = "GPUVM" Password = "CoolestPassword!" Autologon = "true" }

I tried 2 iso and gives me the same error i tried formating my computer but still gives me this error. LOG:** Windows PowerShell transcript start Start time: 20240125141152 Username: DESKTOP-775A0QD\Kağan RunAs User: DESKTOP-775A0QD\Kağan Configuration Name: Machine: DESKTOP-775A0QD (Microsoft Windows NT 10.0.22631.0) Host Application: C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe Process ID: 5692 PSVersion: 5.1.22621.2506 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506 BuildVersion: 10.0.22621.2506 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1


PS>TerminatingError(Add-Type): "Could not find a part of the path 'C:\Users\Kağan\AppData\Local\Temp\vat321rl\vat321rl.tmp'."

TerminatingError(Add-Type): "Could not find a part of the path 'C:\Users\Kağan\AppData\Local\Temp\vat321rl\vat321rl.tmp'." ERROR : Could not find a part of the path 'C:\Users\Kağan\AppData\Local\Temp\vat321rl\vat321rl.tmp'. INFO : Log folder is C:\Users\Kağan\AppData\Local\Temp\Convert-WindowsImage\29ec211b-c973-4ab2-a52f-0b6b711ac08d PS>TerminatingError(Dismount-DiskImage): "Cannot bind argument to parameter 'ImagePath' because it is an empty string." Dismount-DiskImage : Cannot bind argument to parameter 'ImagePath' because it is an empty string. At C:\Users\Kağan\Desktop\Easy-GPU-PV-main\CopyFilesToVM.ps1:36 char:35

  • Dismount-DiskImage -ImagePath $sourcePath | Out-Null
  • CategoryInfo : InvalidData: (:) [Dismount-DiskImage], ParameterBindingValidationException
  • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Dismount-DiskImage Dismount-DiskImage : Cannot bind argument to parameter 'ImagePath' because it is an empty string. At C:\Users\Kağan\Desktop\Easy-GPU-PV-main\CopyFilesToVM.ps1:36 char:35
  • Dismount-DiskImage -ImagePath $sourcePath | Out-Null
  • CategoryInfo : InvalidData: (:) [Dismount-DiskImage], ParameterBindingValidationException
  • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Dismount-DiskImage

INFO : Done.


Windows PowerShell transcript end End time: 20240125141152


Please help me!