From 8380e2a9064be83efdf74ad5c708a0aaba796e21 Mon Sep 17 00:00:00 2001 From: Collin <79947287+CollinCodez@users.noreply.github.com> Date: Sun, 21 Nov 2021 17:17:49 -0500 Subject: [PATCH] Changing VMName from literal declaration to variable --- Update-VMGpuPartitionDriver.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update-VMGpuPartitionDriver.ps1 b/Update-VMGpuPartitionDriver.ps1 index 5215258..a74a8ea 100644 --- a/Update-VMGpuPartitionDriver.ps1 +++ b/Update-VMGpuPartitionDriver.ps1 @@ -67,7 +67,7 @@ foreach ($d in $drivers) { } -$VM = Get-VM -VMName "GPUP" +$VM = Get-VM -VMName $VMName $VHD = Get-VHD -VMId $VM.VMId If ($VM.state -eq "Running") {