jamesstringerparsec / Easy-GPU-PV

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

The computer '' could not be resolved. #247

Open Sukarett2 opened 1 year ago

Sukarett2 commented 1 year ago

This error occurs as running "CopyFilesToVM.ps1", I was wondering if the error below is because I'm using a custom Windows 11 (Revision OS).

**********************
Windows PowerShell transcript start
Start time: 20230116070215
Username: WIN-1OSS0JS8PF9\Sukaretto
RunAs User: WIN-1OSS0JS8PF9\Sukaretto
Configuration Name: 
Machine: WIN-1OSS0JS8PF9 (Microsoft Windows NT 10.0.22621.0)
Host Application: C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe
Process ID: 10688
PSVersion: 5.1.22621.963
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.963
BuildVersion: 10.0.22621.963
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
INFO   : Opening ISO Win11_22H2_English_x64v1.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...
New-VHD : The computer 'WIN-1OSS0JS8PF9' could not be resolved. Make sure you typed the machine name correctly and that 
you have network access.
At C:\Users\Sukaretto\Documents\Easy-GPU-PV\CopyFilesToVM.ps1:2068 char:27
+ ...   $newVhd = New-VHD -Path $VHDPath -SizeBytes $SizeBytes -BlockSizeBy ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-VHD], VirtualizationException
    + FullyQualifiedErrorId : Unspecified,Microsoft.Vhd.PowerShell.Cmdlets.NewVhd
New-VHD : The computer 'WIN-1OSS0JS8PF9' could not be resolved. Make sure you typed the machine name correctly and that you have network access.
At C:\Users\Sukaretto\Documents\Easy-GPU-PV\CopyFilesToVM.ps1:2068 char:27
+ ...   $newVhd = New-VHD -Path $VHDPath -SizeBytes $SizeBytes -BlockSizeBy ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-VHD], VirtualizationException
    + FullyQualifiedErrorId : Unspecified,Microsoft.Vhd.PowerShell.Cmdlets.NewVhd

INFO   : Mounting VHDX...
INFO   : Initializing disk...
PS>TerminatingError(Initialize-Disk): "Cannot validate argument on parameter 'Number'. The argument is null. Provide a valid value for the argument, and then try running the command again."
ERROR  : Cannot validate argument on parameter 'Number'. The argument is null. Provide a valid value for the argument, and then try running the command again.
INFO   : Log folder is C:\Users\SUKARE~1\AppData\Local\Temp\Convert-WindowsImage\84209e00-cd07-4c5e-b95a-58c7bcaa0a69
INFO   : Closing Windows image...
INFO   : Done.
**********************
Windows PowerShell transcript end
End time: 20230116070223
**********************
Raiwulf commented 1 year ago

Changing computer name to WIN-1OSS0JS8PF9 would fix your problem. It worked for me.