Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not crate disk ? #422

Open
NecatiEjder opened this issue Jan 19, 2025 · 3 comments
Open

not crate disk ? #422

NecatiEjder opened this issue Jan 19, 2025 · 3 comments

Comments

@NecatiEjder
Copy link

INFO : Log folder is C:\Users\e0\AppData\Local\Temp\Convert-WindowsImage\45334a2a-68e1-4ce8-85d4-cffac76dc3a0
Dismount-DiskImage : Cannot bind argument to parameter 'ImagePath' because it is an empty string.
At C:\Users\eren0\OneDrive\Masaüstü\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\e0\OneDrive\Masaüstü\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.
Failed to create VHDX, stopping script

help bros my gpu rtx 3060 laptop

$params = @{
VMName = "Denek1"
SourcePath = "D:\Win11_24H2_Turkish_x64.iso"
Edition = 6
VhdFormat = "VHDX"
DiskLayout = "UEFI"
SizeBytes = 400GB
MemoryAmount = 16GB
CPUCores = 6
NetworkSwitch = "Default Switch"
VHDPath = "C:\ProgramData\Microsoft\Windows\Virtual Hard Disks"
UnattendPath = "$PSScriptRoot"+"\autounattend.xml"
GPUName = "AUTO"
GPUResourceAllocationPercentage = 70
Team_ID = ""
Key = ""
Username = "denek"
Password = "CoolestPassword!"
Autologon = "true"
}

@MorderczkazPolski12
Copy link

Just a wild guess, have you tried making it elsewhere other than onedrive? Even a dummy VM of 40GB is enough.

Alternatively:
double check if your path is written correctly,

@NecatiEjder
Copy link
Author

INFO : Log folder is C:\Users\eren0\AppData\Local\Temp\Convert-WindowsImage\756ac94b-a945-454b-b39a-ed1aed523475
Dismount-DiskImage : Cannot bind argument to parameter 'ImagePath' because it is an empty string.
At D:\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.
Failed to create VHDX, stopping script

@MorderczkazPolski12

bro, it is not installed in the OneDrive folder. If it does this because the user folder is in OneDrive, I think I will have to follow another path.

@NecatiEjder
Copy link
Author


Windows PowerShell transcript start
Start time: 20250121221608
Username: Black-Dragon\V
RunAs User: Black-Dragon\V
Configuration Name:
Machine: BLACK-DRAGON (Microsoft Windows NT 10.0.26100.0)
Host Application: C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe
Process ID: 22948
PSVersion: 5.1.26100.2161
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.26100.2161
BuildVersion: 10.0.26100.2161
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ı.
INFO : Log folder is C:\Users\eren0\AppData\Local\Temp\Convert-WindowsImage\756ac94b-a945-454b-b39a-ed1aed523475
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 D:\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 D:\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: 20250121221609


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants