Solved

ADJUST FOR BEST PERFORMANCE, vbscript of group policy?

Posted on 2007-03-29
8
4,445 Views
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,
0
Comment
Question by:yalemort
8 Comments
 
LVL 67

Expert Comment

by:sirbounty
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
Next
Set objReg=Nothing
0
 

Author Comment

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

Expert Comment

by:sirbounty
ID: 18837934
Can you give me some additional feedback?  What didn't work?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 

Author Comment

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

Expert Comment

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

Start->Run->Regedit <Enter>
Navigate to
HKey_Current_User\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects
Check that the values under all the subkeys there are DefaultApplied=0
0
 

Accepted Solution

by:
TannerAlex earned 125 total points
ID: 20513498
Hi,
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
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21197822
Forced accept.

Computer101
EE Admin
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
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…
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…

790 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