I have two cmd scrips that allow me to toggle my PC between "performance" and "quiet" modes, killing or relaunching some apps, switching power plans and so on.
I would like to make them also switch between visual effects settings, namely
"Adjust for best performance" "Let Windows choose".
I tried REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects /v VisualFXSetting /t REG_DWORD /d 2 /f and REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects /v VisualFXSetting /t REG_DWORD /d 0 /f, however the only thing, registry editing is achieving is changing the option picked in the setting GUI. Even the "Apply" button stays disabled. I tried logging off and even that doesn't apply the changes.
Is there a way to change the visual effects from a cmd script with a change being applied immediately? Something like powercfg.exe /setactive, but for the SystemPropertiesPerformance.exe? Maybe a small program, somebody designed specifically for that?