From 2fd04a231bb2e86e9e759ccad9d6f4be0f914ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Sandstr=C3=B6m?= Date: Tue, 17 Dec 2024 13:52:26 +0100 Subject: [PATCH 1/2] Update toggle-VDD.ps1 Changed the Friendlyname of the driver, script was OLD --- 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 4b11b32..dc63685 100644 --- a/Community Scripts/toggle-VDD.ps1 +++ b/Community Scripts/toggle-VDD.ps1 @@ -8,7 +8,7 @@ } } -$device = get-pnpdevice -class Display -FriendlyName 'IddSampleDriver Device HDR' -ErrorAction SilentlyContinue +$device = get-pnpdevice -class Display -FriendlyName 'Virtual Display Driver' -ErrorAction SilentlyContinue if ($device) { if ($device.Status -eq 'OK') { 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 2/2] 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') {