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') {