From 92783679d3fc6445272a0c38eef5382c6c53c675 Mon Sep 17 00:00:00 2001 From: Kinglucb Date: Sat, 31 Aug 2024 00:02:05 -0300 Subject: [PATCH] gpu-model-fix --- os-discovery-tool/getWindowsOsInvToIntersight.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os-discovery-tool/getWindowsOsInvToIntersight.ps1 b/os-discovery-tool/getWindowsOsInvToIntersight.ps1 index de0f0a2..af4ff75 100644 --- a/os-discovery-tool/getWindowsOsInvToIntersight.ps1 +++ b/os-discovery-tool/getWindowsOsInvToIntersight.ps1 @@ -294,8 +294,8 @@ Function GetDriverDetails { foreach($cmd in $nvidiasmi) { # Determine if Graphics driver or compute driver is installed - $command = "'$cmd' --query-gpu=driver_model.current --format=csv,no header" - $mode = Invoke-Command -ComputerName $hostname -ScriptBlock ([ScriptBlock]::Create("& $command")) + $command = "& `"$cmd`" --query-gpu=driver_model.current --format=csv,noheader" + $mode = Invoke-Command -ComputerName $hostname -ScriptBlock {Invoke-Expression $using:command} if($mode -contains "WDDM") {