Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
StormLogiX

"Adjust for best performance" through command line

Recommended Posts

Hello,

I have a question:

My computer -> Properties -> Advanced -> Settings -> "Adjust for best performance"

...is it possible setting this through command line?

I found this with google:

rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3

but it is only showing the "Advanced" tab of "System Properties" panel and sets nothing :(

Share this post


Link to post
Share on other sites

Yes, there are 2 settings you can choose :

Adjust for best performance of Programs

or

Adjust for best performance of Background Services.

All this does is change the DWORD value of Win32PrioritySeparation under this registry hive:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl

Set Win32PrioritySeparation to 0x26 (decimal 38) for Programs.

Set Win32PrioritySeparation to 0x18 (decimal 24) for Background Services.

You can use the REGEDIT line commands to do the registry change for you.

Look around this forum to see how the syntax works, I can't remember at the moment.

This change requires a re-boot to take effect.

Share this post


Link to post
Share on other sites
Yes, there are 2 settings you can choose :

Adjust for best performance of Programs

  or

Adjust for best performance of Background Services.

All this does is change the DWORD value of Win32PrioritySeparation under this registry hive:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl

Set Win32PrioritySeparation to 0x26 (decimal 38) for Programs.

Set Win32PrioritySeparation to 0x18 (decimal 24) for  Background Services.

You can use the REGEDIT line commands to do the registry change for you.

Look around this forum to see how the syntax works, I can't remember at the moment.

This change requires a re-boot to take effect.

I think He's more talking about this :

post-70-1100114066_thumb.jpg

Share this post


Link to post
Share on other sites

@StormLogiX: My best solution to ur question will be to make a registry snapshot when the option is at "ajust for best performence" and then compare the change when the option is at "adjust for best performence". Then make your self a .reg file.

Share this post


Link to post
Share on other sites

@StormLogiX: When are at "Ajust for best apparence" and you change for "adjust for best performence" It make the following changes:

0 files added

1 file deleted

2 files updated

118 registry entries added

10 registry entries deleted

140 registry entries updated

I'm working on it....

Share this post


Link to post
Share on other sites

Try This .Reg File !

1 --> Click the .reg file twice and accept the warning to import the setting.

2 --> Logout and come back or just kill ur explorer and reload it using taskman.

Hope this was what u was looking for.

If You really really want a command to do it tell me. But I warn you in advence you'll need to put an .exe in ur system to do that.

NOTE: This file has been made for WinXP SP2.

-M

Best_Performence.zip

Share this post


Link to post
Share on other sites

Thanks for the registry settings although I'm kinda not sattisfied with that. I have done some research in that direction myself but its not, eh, "clean", somehow :}. I like the "Adjust for best performance" more.

Now I have experimented a bit with AutoIt v3. A tool I just have discovered in this Forum.

Here's the result "Adjust for best performance.au3":

Opt("WinTitleMatchMode", 4)

;Opens the System Properties window and chooses the 3rd tab
;same as right click --> properties from My Computer.
Run("control sysdm.cpl,,3")

;click on the Performance Options "Settings" button
WinWaitActive("classname=#32770")
$handle = WinGetHandle("active")
ControlClick("","","Button2")

;click on "Adjust for best performance"
WinWaitActive("classname=#32770")
ControlClick("","","Button3")

;click on "OK" button
ControlClick("","","Button5")

;click on "OK" button
WinWaitActive("handle="&$handle)
ControlClick("","","Button9")

Works perfect for me.

I had to use the "classname=" feature because if I had used the window title or button title it will only work with German Windows :P

Btw. I haven't tested it on any other Windows than my German Windows XP Pro SP2. Can somebody test it on other language Windows XP and report if its working or not? :yes:

Share this post


Link to post
Share on other sites

not but 7 reg entries when you select that, not all that other stuff.

To answer your ?

Yes it can be set by command line but that involve's Reg.exe and writing as I see it 2 Binary key's. Binary is a little tricky but can be done. Pop open a prompt and type REG ADD /?

Just easier to use a reg file but in no way's that one above, just too much.

Share this post


Link to post
Share on other sites

The little tool that smc1979 has created "VisualEffectsChangerXP" is great but after you apply the settings with his tool, you have to reboot for the settings to take effect.

Whereas the click on "Adjust for best performance" and then "OK" doesn't require a reboot. That's why I made this script with AutoIt.

On the other hand: with my script you don't have any choices to choose from - only "Adjust for best performance". But I think that already suits my only needs. :P

p.s.

I compiled the script into an .exe for anyone who doesn't have AutoIt yet. Warning! No confirmation or whatsoever.

Adjust_for_best_performance.exe

Share this post


Link to post
Share on other sites
storm

i believe this is what u are looking for.

Tested - and NOT working (yes, I did try rebooting and everything). And the .reg file is missing the header btw.

As it was pointed out before too, importing HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects and the like does NOT work.

@maxXPsoft: I'd be curious to see your pick on this one... See if it works ;)

As for the vb6 app, I would rather have a vbscript to do it, but it works...

The only other way I could see, is importing proper reg at cmdlines.txt like such (have not tested yet) and then it would apply to all users which might not be what you want.

Share this post


Link to post
Share on other sites

SORRY i was in a hurry...

i also forgot to explain that this only works before u enter windows the first time. u can't apply it when u hv logon on to windows already.

which is what crahak is suggesting at the cmdlines.txt

or RegTweaks.reg

i updated the file sorry i forgot to put the header. thanks crahak for pointing that out to me.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...