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
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?
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline


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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now