Adjust for best performance RRS feed

  • Question

  • Hi,

    I'm wonder how to adjust for best performance on windows 7 as bellow?



    Sunday, June 24, 2012 1:04 PM

All replies

  • Hi,

    I think this is a good selection. But this is the wrong forum for your question. Because it doesn´t concern to Powershell.

    Please use the windows Forum for it.

    regards Thomas Paetzold visit my blog on:

    • Edited by Peddy1st Sunday, June 24, 2012 2:09 PM
    Sunday, June 24, 2012 2:08 PM
  • All of these items are individually settable, as you will see if you run the following code:

    cd hkcu:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects
    gi *

    However, there doesn't seem to be a registry entry to select between the radio buttons on the above graphic.

    Grant Ward, a.k.a. Bigteddy

    Sunday, June 24, 2012 4:23 PM
  • I have found, by experimenting, that if you create a DWORD entry directly off the VisualEffects key, with a value of 2, it sets the computer to best performance setting:

    Grant Ward, a.k.a. Bigteddy

    Sunday, June 24, 2012 4:48 PM
  • My Powershell answer:

    $path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects'
    try {
        $s = (Get-ItemProperty -ErrorAction stop -Name visualfxsetting -Path $path).visualfxsetting 
        if ($s -ne 2) {
            Set-ItemProperty -Path $path -Name 'VisualFXSetting' -Value 2  
    catch {
        New-ItemProperty -Path $path -Name 'VisualFXSetting' -Value 2 -PropertyType 'DWORD'

    Grant Ward, a.k.a. Bigteddy

    Sunday, June 24, 2012 5:27 PM
  • Hi,

    Thank you for the script,

    It is really checks the "Adjust for best performance" radio button and uncheck all options, but....

    It is not take an effect. I checked that in some machines.

    But by trying to implement that manually and click on the "Ok" button, then it will take effect.

    I tried also to reboot the machine in order to check if that helps, but it is not.

    Can you please help me solve the above problem,



    • Edited by Nadim2522 Monday, June 25, 2012 1:40 PM
    Monday, June 25, 2012 1:39 PM
  • Yes, I also found that although the settings show as changed, the effect is not changed.  I can't explain this.

    Grant Ward, a.k.a. Bigteddy

    Monday, June 25, 2012 5:12 PM
  • Hi,

    oh sorry, but is missunstood you. You asked for assistance changing the power control setting configuring directly the registry.

    The registry mentioend by bigteddy seems to be wrong as this Microsoft KB article says:

    Have a look at the section called: "How to use the registry to set the preferred power plan"

    Hope this helps.

    Kind regards


    regards Thomas Paetzold visit my blog on:

    Monday, June 25, 2012 5:47 PM
  • Hi,

    oh sorry, but is missunstood you. You asked for assistance changing the power control setting configuring directly the registry.

    No, I don't think the OP is looking to change the Power Plan options. (Although that's a useful link you gave).  As you can see in the first post, the OP wants to change the visual effects.  It is strange that the registry mod that I suggested seems to work, and yet doesn't really.

    Grant Ward, a.k.a. Bigteddy

    Monday, June 25, 2012 5:53 PM
  • Hi Bigteddy,

    but this is quite normal that changing the registry doesn´t perform instantly. Because registry is red by system during the logon process. If you change the key in a running session you need a process to read the changed value again and "execute it". I think if you change the setting changing the registry key and after that starting the dektop application and close it without changing then the key is interpreted by the system. right? This is the same behavior like changing other settings .

    Some time ago I tried to change the screensaver the same way (configuring during registry changes) but the changes took affekt after the next logon.

    regards Thomas Paetzold visit my blog on:

    Monday, June 25, 2012 8:11 PM
  • Hi,

    any upopdates? If your question is answered it would be nice if you mark it accordiongly because this may help others.

    Kind regards


    regards Thomas Paetzold visit my blog on:

    Thursday, June 28, 2012 4:12 AM
  • I've done some fairly extensive testing with Windows 7 and Server 2008 R2.  The "VisualFXSetting" solution appears to have no actual impact on the "Adjust for best performance" system option.  In none of my testing did that registry key have an impact on performance settings, and modifying the performance settings via the GUI did not write any changes to that key.

    I've seen this suggestion posted on many sites, but it appears to be inaccurate.

    I used regshot to capture the registry changes when modifying this setting via the GUI, and there were 143 modifications to the registry when I switched from letting Windows manage it, to selecting "adjust for best performance"

    It would be really great if there were an option to apply these settings with GPO, or powershell, or  a commandline exe, but I've been unable to find anything like that. 

    Wednesday, December 26, 2012 8:54 PM
  • Have just spent most of my morning trying to crack this. 

    Download this -

    It works flawlessly every time. Have tested on XP, Windows 7 & Windows 8 machines.

    The original compiled code can be found here -

    I grabbed AutoIt, and pasted the code in, making sure to change the following below, to provide a separate script for 'Adjust for best appearance'.

    ;click on "Adjust for best performance"

    So glad I came across this, thought it might make a few more people happy.

    Wednesday, June 12, 2013 11:56 AM
  • Hello, I'm used this for the same at a smart way:


    Windows Registry Editor Version 5.00

    ; ###
    ; Visual Effects
    ; ###


    ; Do not Animate windows when minimizing and maximizing
    [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]

    ; Disable Animations in Taskbar and Start Menu

    ; Disable desktop composition

    ; Enable transparent glass

    ; Disable Taskbar Thumbnail Previews

    ; Disable Explorer Thumbnails (All Users)

    ; Disable translucent selection rectangle

    ; Dont show window contents while dragging
    [HKEY_CURRENT_USER\Control Panel\Desktop]

    ; Dont smooth Edges of Screen Fonts
    [HKEY_CURRENT_USER\Control Panel\Desktop]

    ; Use drop shadows for icon labels on the desktop

    ; Disable visual styles on windows and buttons

    ; Disable following:
    ; * Animate controls and elements inside windows
    ; * Smooth-scroll list boxes
    ; * Slide open combo boxes
    ; * Fade or slide menus into view
    ; * Show shadows under mouse pointer
    ; * Fade or slide ToolTips into view
    ; * Fade out menu items after clicking
    ; * Show shadows under windows
    ; * Use Visual styles on windows and buttons
    [HKEY_CURRENT_USER\Control Panel\Desktop]

    And finally, restart Themes(English) or Temas(Spanish) Service, for changes take effect:

    used in .cmd or .bat file:

    @Echo off
    echo "Restart Themes/Temas Service ..."

    net stop themes
    net start themes

    • Proposed as answer by Hiram Fleitas Tuesday, April 2, 2019 7:09 PM
    Thursday, August 29, 2013 7:35 AM
  • worked like charm. Thx!
    Friday, February 10, 2017 4:49 PM
  • This worked.  Thank you!
    Thursday, February 16, 2017 4:21 PM
  • So, this script actually works, however for a server you should use HKLM, not HKCU. other wise it will not effect all users on the machine.

    //Will write code for food

    Wednesday, July 11, 2018 5:41 PM
  • you cant set it for HKLM
    Monday, September 9, 2019 1:27 PM