Share via


Adjust for best performance

Question

Sunday, June 24, 2012 1:04 PM | 1 vote

Hi,

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

Regards,

Bader

All replies (17)

Sunday, June 24, 2012 2:08 PM

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: http://sus42.wordpress.com


Sunday, June 24, 2012 4:23 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:48 PM | 2 votes

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 5:27 PM | 3 votes

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


Monday, June 25, 2012 1:39 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,

Regards,

Bader


Monday, June 25, 2012 5:12 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:47 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:

http://support.microsoft.com/kb/935799

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

Hope this helps.

Kind regards

  Thomas

regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com


Monday, June 25, 2012 5:53 PM | 1 vote

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 8:11 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: http://sus42.wordpress.com


Thursday, June 28, 2012 4:12 AM

Hi,

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

Kind regards

  Thomas

regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com


Wednesday, December 26, 2012 8:54 PM

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, June 12, 2013 11:56 AM | 1 vote

Have just spent most of my morning trying to crack this. 

Download this - http://www.msfn.org/board/index.php?app=core&module=attach&section=attach&attach_id=3726

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

The original compiled code can be found here - http://www.msfn.org/board/topic/31999-adjust-for-best-performance-through-command-line/

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"
WinWaitActive("classname=#32770")
ControlClick("","","Button3")

 

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


Thursday, August 29, 2013 7:35 AM | 3 votes

Hello, I'm used this for the same at a smart way:

best_performance.reg:

Windows Registry Editor Version 5.00

; ###
; Visual Effects
; ###

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000002

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

; Disable Animations in Taskbar and Start Menu
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarAnimations"=0
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarAnimations"=-

; Disable desktop composition
[HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM]
"CompositionPolicy"=0

; Enable transparent glass
[HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM]
"ColorizationOpaqueBlend"=0

; Disable Taskbar Thumbnail Previews
[HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM]
"AlwaysHibernateThumbnails"=dword:00000000

; Disable Explorer Thumbnails (All Users)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"DisableThumbnails"=dword:00000001

; Disable translucent selection rectangle
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ListviewAlphaSelect"=0

; Dont show window contents while dragging
[HKEY_CURRENT_USER\Control Panel\Desktop]
"DragFullWindows"=0

; Dont smooth Edges of Screen Fonts
[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="0"

; Use drop shadows for icon labels on the desktop
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ListviewShadow"=0

; Disable visual styles on windows and buttons
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"=-

; 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]
"UserPreferencesMask"=hex:90,12,01,80,10,00,00,00

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


Friday, February 10, 2017 4:49 PM

worked like charm. Thx!


Thursday, February 16, 2017 4:21 PM

This worked.  Thank you!


Wednesday, July 11, 2018 5:41 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


Monday, September 9, 2019 1:27 PM

you cant set it for HKLM