diff --git a/Community Scripts/toggle-VDD.ps1 b/Community Scripts/toggle-VDD.ps1 index 4b11b32..265da86 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 -ErrorAction SilentlyContinue | Where-Object { $_.FriendlyName -eq 'IddSampleDriver Device HDR' -or $_.FriendlyName -eq 'Virtual Display Driver' } if ($device) { if ($device.Status -eq 'OK') {