From 80861064e8618b1cfadb0e71dbc65698a36b5ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Sandstr=C3=B6m?= Date: Tue, 17 Dec 2024 14:50:26 +0100 Subject: [PATCH] Update toggle-VDD.ps1 Supporting old and new driver --- Community Scripts/toggle-VDD.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/toggle-VDD.ps1 b/Community Scripts/toggle-VDD.ps1 index dc63685..265da86 100644 --- a/Community Scripts/toggle-VDD.ps1 +++ b/Community Scripts/toggle-VDD.ps1 @@ -8,7 +8,7 @@ } } -$device = get-pnpdevice -class Display -FriendlyName 'Virtual Display Driver' -ErrorAction SilentlyContinue +$device = Get-PnpDevice -Class Display -ErrorAction SilentlyContinue | Where-Object { $_.FriendlyName -eq 'IddSampleDriver Device HDR' -or $_.FriendlyName -eq 'Virtual Display Driver' } if ($device) { if ($device.Status -eq 'OK') {