Skip to content

GPU drivers not correctly updating #472

@Iridescentkysoul

Description

@Iridescentkysoul

After Updating my NVIDA GPU drivers i tried to run the Update-VMGpuPartitionDriver.ps1-script which ran without any error messages but the GPU does not show in the guests device manager. I also verified that some Files do get copied over to the guest.

Im running the script in Powershell ISE with admin rights. This is the script with my modified Parameters according to the comment in the header
`<#
If you are opening this file in Powershell ISE you should modify the params section like so...
Remember: GPU Name must match the name of the GPU you assigned when creating the VM...

Param (
[string]$VMName = "NameofyourVM",
[string]$GPUName = "NameofyourGPU",
[string]$Hostname = $ENV:Computername
)

#>

Param (
[string]$VMName = "GPUPV",
[string]$GPUName = "NVIDIA GeForce RTX 5080",
[string]$Hostname = $ENV:Computername
)
Import-Module $PSSCriptRoot\Add-VMGpuPartitionAdapterFiles.psm1

$VM = Get-VM -VMName $VMName
$VHD = Get-VHD -VMId $VM.VMId

If ($VM.state -eq "Running") {
[bool]$state_was_running = $true
}

if ($VM.state -ne "Off"){
"Attemping to shutdown VM..."
Stop-VM -Name $VMName -Force
}

While ($VM.State -ne "Off") {
Start-Sleep -s 3
"Waiting for VM to shutdown - make sure there are no unsaved documents..."
}

"Mounting Drive..."
$DriveLetter = (Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter} | ForEach-Object DriveLetter)

"Copying GPU Files - this could take a while..."
Add-VMGPUPartitionAdapterFiles -hostname $Hostname -DriveLetter $DriveLetter -GPUName $GPUName

"Dismounting Drive..."
Dismount-VHD -Path $VHD.Path

If ($state_was_running){
"Previous State was running so starting VM..."
Start-VM $VMName
}

"Done..."`

The current NVIDIA drivers im trying to copy are Version 595.97 and my Host Windows Version is
Edition Windows 11 Pro
Version 25H2
Installiert am ‎03.‎02.‎2026
Betriebssystembuild 26200.8037
Funktionspaket Windows Feature Experience Pack 1000.26100.300.0

My Guest Windows Version is
Edition Windows 11 Pro N
Version 25H2
Installiert am ‎20/‎03/‎2026
Betriebssystembuild 26200.8037
Funktionspaket Windows Feature Experience Pack 1000.26100.300.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions