Regedit to all HKLM\...\Video\ devices?

Rck

New Member
Messages
21
Reaction score
1
Hello !
This one is tricky :)

I would like to add the "Acceleration.Level" regedit entry to all Video devices.
Problem: videos devices {ids...} are changing each time I install Win7, so I can't simply record one default key like this:
1757517910459.png

Obvisously it's not applied to the two correct generated video entries {650...} and {72F...}
1757518018023.png

Did someone have one idea how to add this key to all video devices ?
Maybe with one vbscript at the first login ?
 
This reg value is meaningless, if applied to the wrong graphics device instance. It won't harm Windows, but some of the devices are virtual drivers that don't match a physical GPU.

1. Integrate your graphics drivers into the Windows image.

2. Copy this PowerShell script to a file (GPUAcceleration.ps1), and add the script from Post-Setup (Before logon):
Code:
foreach ($key in (Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\0000")) {
    try { $null = Get-ItemPropertyValue $key.PSPath -Name 'MatchingDeviceID' }
    catch { continue }

    $null = New-ItemProperty $key.PSPath -Name 'Acceleration.Level' -Value 5 -Force
}
 
Just for info, I had to simplified your code to make it work on Win7SP1 with PSVersion=2.0 :)
foreach ($key in (Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\0000")) {
New-ItemProperty $key.PSPath -Name 'Acceleration.Level' -Value 5 -Force
}
 
Dude, you're supposed to install WMF 5.1 on SP1 and get PS 5.1. W11 25H2 is already purging PS 2.0 because it's a security nightmare...
 
Back
Top