Skip to content

Commit 8086106

Browse files
authored
Update toggle-VDD.ps1
Supporting old and new driver
1 parent 2fd04a2 commit 8086106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Community Scripts/toggle-VDD.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
}
1010

11-
$device = get-pnpdevice -class Display -FriendlyName 'Virtual Display Driver' -ErrorAction SilentlyContinue
11+
$device = Get-PnpDevice -Class Display -ErrorAction SilentlyContinue | Where-Object { $_.FriendlyName -eq 'IddSampleDriver Device HDR' -or $_.FriendlyName -eq 'Virtual Display Driver' }
1212

1313
if ($device) {
1414
if ($device.Status -eq 'OK') {

0 commit comments

Comments
 (0)