Skip to content

Commit

Permalink
Update toggle-VDD.ps1
Browse files Browse the repository at this point in the history
Supporting old and new driver
  • Loading branch information
zjoasan authored Dec 17, 2024
1 parent 2fd04a2 commit 8086106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Community Scripts/toggle-VDD.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 8086106

Please sign in to comment.