ADJUST FOR BEST PERFORMANCE, vbscript of group policy?

Posted on 2007-03-29
Medium Priority
Last Modified: 2012-08-14
Using vbscript or group policy, is there a way to change the VISUAL EFFECTS option under the PERFORMANCE OPTIONS in the advanced tabe of the system properties? I would like to have all my computers always use "ADJUST FOR BEST PERFORMANCE".

thank you,
Question by:yalemort
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 67

Expert Comment

ID: 18835687
Well, in actuality, I don't believe that is a single setting - but 16 individual registry settings...

However, this script should enumerate through all of those settings and turn them off - thereby enabling "Best Performance" for you...

Const HKCU = &H80000001
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects"
objReg.EnumKey HKCU, strKeyPath, arrSubKeys

For Each subKey In arrSubKeys
    objReg.SetDWordValue HKCU, strKeyPath & "\" & subKey, "DefaultApplied", 0
Set objReg=Nothing

Author Comment

ID: 18837921
that script did not work. any other ideas?
LVL 67

Expert Comment

ID: 18837934
Can you give me some additional feedback?  What didn't work?
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.


Author Comment

ID: 18837965
it just ran, i rebooted the computer but the setting had not changed.
LVL 67

Expert Comment

ID: 18838242
Hmm - can you check that the values were even changed?
This worked for me here...

Start->Run->Regedit <Enter>
Navigate to
Check that the values under all the subkeys there are DefaultApplied=0

Accepted Solution

TannerAlex earned 500 total points
ID: 20513498
Don't know if this is still relevant, but I had the same need and I resolved it with the script below. You will notice that the settings are actually user dependent, wich didn't astonished me to much, but you may explore the same settings in the HKLM.

' Script Begining
Option Explicit
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002

Dim strComputer, oReg, strKeyPath,strValueName, dwValue

strComputer = "."

Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects"
' Sets a DWORD value
strValueName = "VisualFXSetting"
dwValue = 00000002
oReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue

' Sets a string value
'strValueName = "String Name"
'strValue = "String Value"
' oReg.SetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
' End of script

Cheers, Alex

Expert Comment

ID: 21197822
Forced accept.

EE Admin

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question