How could I disable windows effects through batch

Viewed 21844

Is it possible to disable these options shown in the picture below using a batch file. I am making a program that can boost a computers performance can any one help. my OS is windows 7 32bit

enter image description here

3 Answers

I created this today in case anyone wants to use a PowerShell script:

0 = Let windows choose what's best for my computer
1 = Adjust for best appearance
2 = Adjust for best performance

    $mode = 2
    $visualEffects = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects'
    if ((Get-ItemProperty $visualEffects).PSObject.Properties.Name -contains $name)
    {
      New-ItemProperty -Path $visualEffects -Name 'VisualFXSetting' -Value $mode -PropertyType 'DWORD'
    }
    else
    {
      Set-ItemProperty -Path $visualEffects -Name 'VisualFXSetting' -Value $mode  
    }
    Restart-Service -Name Themes  #(optional) to apply settings now
Related