Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I disable windows effects through batch

Is it possible to disable these options shown in the picture below using a batch file. I am making a program that can boost a computers performance can any one help. my OS is windows 7 32bit

enter image description here

like image 932
09stephenb Avatar asked Dec 11 '13 10:12

09stephenb


People also ask

How do I disable shadows animations and visual effects?

Using Ease of Access to Optimize Visual Effects Click on the Control Panel app to proceed. Select Optimize visual display under the Ease of Access menu in the Control Panel. Scroll down and check the box for Turn off all unnecessary animations (when possible) under the Make things on the screen easier to see menu.

How do I turn off visual effects in Windows 11?

Click the Visual Effects tab. Select the Adjust for best performance option. Quick note: When selecting this option, the system will turn off the fancy rendering feature for fonts. If you want to see the smoother text, select the Custom option, clear all the options, and check the Smooth edges of screen fonts option.

How do I turn off visual effects in Windows 7?

In the Performance Information and Tools window, under Control Panel Home, click Adjust visual effects. 6. In the Performance Options window, on the Visual Effects tab, click to select Adjust for best performance or under Custom, uncheck items to disable individual visual effect settings, and then click the OK button.


2 Answers

To disable the effects

sc stop uxsms

To enable the effects

sc stop uxsms

You have to run it as Admin.

Like npocmaka said you have to change the value of the registry key :

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000002"

With one of these value :

"VisualFXSetting"=dword:00000002 <-2 = All Settings Off

"VisualFXSetting"=dword:00000003 <- Manual Settings

"VisualFXSetting"=dword:00000001 <- Let's Windows choose.

EDIT : Here the keys you can set to 00000000 (off) or to 00000001 (on)

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
  "VisualFXSetting"=dword:00000003

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMAeroPeekEnabled]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMEnabled]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMSaveThumbnailEnabled]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes]

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation]
  "DefaultApplied"=dword:00000001

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TransparentGlass]
  "DefaultApplied"=dword:00000001
like image 179
SachaDee Avatar answered Oct 02 '22 03:10

SachaDee


To create a batch file that adjusts the performance options change to one of these (to keep the visual style see below)-

Let Windows Choose:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000000"

Adjust for Best Appearance:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000001"

Adjust for Best Performance:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000002"

Custom:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000003"

If you want to retain the Visual Style, which doesn't change it to the classic theme, use this:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"="1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"=-

Also see this link

like image 41
Mordax86 Avatar answered Oct 02 '22 04:10

Mordax86