Update-VMGpuPartitionDriver can't find driver letter
My windows version is win11 24h2
run Update-VMGpuPartitionDriver.ps1 get a lot of error like :
Copy-item : Not support xxx
E:\xiazai\Easy-GPU-PV-main\Add-VMGpuPartitionAdapterFiles.psm1:62 : 17
+ ... Copy-item -path "$DriverDir" -Destination "$driverDest" - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-Item], NotSupportedException
+ FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.CopyItemCommand
and the reason is
here get DriveLetter is empty, it seems that windows does not add driverletter to it automatically after mounting
I slove the problem by run Mount-VHD -Path $VHD.Path -PassThru manually, then open windows disk manager, and a driver letter to the disk, then umount it.
When it mounts next time, the driver letter will be reserved, so the script works.
My windows version is win11 24h2
run Update-VMGpuPartitionDriver.ps1 get a lot of error like :
Copy-item : Not support xxx E:\xiazai\Easy-GPU-PV-main\Add-VMGpuPartitionAdapterFiles.psm1:62 : 17 + ... Copy-item -path "$DriverDir" -Destination "$driverDest" - ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Copy-Item], NotSupportedException + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.CopyItemCommandand the reason is
here get DriveLetter is empty, it seems that windows does not add driverletter to it automatically after mounting
I slove the problem by run
Mount-VHD -Path $VHD.Path -PassThrumanually, then open windows disk manager, and a driver letter to the disk, then umount it.When it mounts next time, the driver letter will be reserved, so the script works.
Hi.
Also getting this error and have to manually mount the vhdx and assign letter before ejecting and then the script runs ok Mount-VHD -Path $VHD.Path -PassThru
This isnt a Graphics driver issue but a issue with the mount-vhd command.
https://github.com/jamesstringerparsec/Easy-GPU-PV/issues/407 Isnt related as their error was using the wrong script
Windows 11 pro 23h2
#435 this is the solution. Just set th driver letter manualy onece using Windows Disk Dispatcher.
here get DriveLetter is empty, it seems that windows does not add driverletter to it automatically after mounting