ADJUST FOR BEST PERFORMANCE, vbscript of group policy?

Posted on 2007-03-29
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?
Technology Partners: 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!


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 125 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Recently, an awarded photographer, Selina De Maeyer (, completed a photo shoot of a beautiful event ( in An…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

726 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