Toggle Windows Visual Effects using the command line











up vote
2
down vote

favorite












I have two cmd scrips that allow me to toggle my PC between "performance" and "quiet" modes, killing or relaunching some apps, switching power plans and so on.



I would like to make them also switch between visual effects settings, namely
"Adjust for best performance" "Let Windows choose".
I tried REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 2 /f and REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 0 /f, however the only thing, registry editing is achieving is changing the option picked in the setting GUI. Even the "Apply" button stays disabled. I tried logging off and even that doesn't apply the changes.



Is there a way to change the visual effects from a cmd script with a change being applied immediately? Something like powercfg.exe /setactive, but for the SystemPropertiesPerformance.exe? Maybe a small program, somebody designed specifically for that?










share|improve this question


























    up vote
    2
    down vote

    favorite












    I have two cmd scrips that allow me to toggle my PC between "performance" and "quiet" modes, killing or relaunching some apps, switching power plans and so on.



    I would like to make them also switch between visual effects settings, namely
    "Adjust for best performance" "Let Windows choose".
    I tried REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 2 /f and REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 0 /f, however the only thing, registry editing is achieving is changing the option picked in the setting GUI. Even the "Apply" button stays disabled. I tried logging off and even that doesn't apply the changes.



    Is there a way to change the visual effects from a cmd script with a change being applied immediately? Something like powercfg.exe /setactive, but for the SystemPropertiesPerformance.exe? Maybe a small program, somebody designed specifically for that?










    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I have two cmd scrips that allow me to toggle my PC between "performance" and "quiet" modes, killing or relaunching some apps, switching power plans and so on.



      I would like to make them also switch between visual effects settings, namely
      "Adjust for best performance" "Let Windows choose".
      I tried REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 2 /f and REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 0 /f, however the only thing, registry editing is achieving is changing the option picked in the setting GUI. Even the "Apply" button stays disabled. I tried logging off and even that doesn't apply the changes.



      Is there a way to change the visual effects from a cmd script with a change being applied immediately? Something like powercfg.exe /setactive, but for the SystemPropertiesPerformance.exe? Maybe a small program, somebody designed specifically for that?










      share|improve this question













      I have two cmd scrips that allow me to toggle my PC between "performance" and "quiet" modes, killing or relaunching some apps, switching power plans and so on.



      I would like to make them also switch between visual effects settings, namely
      "Adjust for best performance" "Let Windows choose".
      I tried REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 2 /f and REG ADD HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 0 /f, however the only thing, registry editing is achieving is changing the option picked in the setting GUI. Even the "Apply" button stays disabled. I tried logging off and even that doesn't apply the changes.



      Is there a way to change the visual effects from a cmd script with a change being applied immediately? Something like powercfg.exe /setactive, but for the SystemPropertiesPerformance.exe? Maybe a small program, somebody designed specifically for that?







      windows command-line visual-effects






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 19:22









      HAWPIZNOTWORKman

      112




      112






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          There are two registry changes required for changing the visual effects options,
          followed by logout or restart.



          VisualFXSetting



          This DWORD item is found at key
          HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects
          and its values are:





          • 0 (zero) for Let Windows choose what's best for my computer settings


          • 1 for Adjust for best appearance settings


          • 2 for Adjust for best Performance settings


          • 3 for Custom settings, if the user changed individual
            visual effect settings.


          UserPreferencesMask



          This DWORD item is found at key
          HKEY_CURRENT_USERControl PanelDesktop
          and can have the following values:




          • Let Windows choose what's best for my computer : 9E 1E 07 80 12 00 00 00

          • Adjust for best appearance : 9E 3E 07 80 12 00 00 00

          • Adjust for best Performance : 9E 12 03 80 10 00 00 00

          • Custom : The binary value of 1001ABC0 00D1EF10 00000G11 in the first 3 bytes


          Each of the above letters ABCDEFG has the value 0=off and 1=on, as follows:




          • A : Smooth-scroll list boxes

          • B : Slide open combo boxes

          • C : Fade or slide menus into view

          • D : Show shadows under mouse pointer

          • E : Fade or slide ToolTips into view

          • F : Fade out menu items after clicking

          • G : Show shadows under windows


          References :




          • How to Change Visual Effects Settings in Windows 10

          • How to Change the Visual Effects Settings in Windows 7






          share|improve this answer





















          • I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
            – HAWPIZNOTWORKman
            Nov 22 at 13:32











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376503%2ftoggle-windows-visual-effects-using-the-command-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          There are two registry changes required for changing the visual effects options,
          followed by logout or restart.



          VisualFXSetting



          This DWORD item is found at key
          HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects
          and its values are:





          • 0 (zero) for Let Windows choose what's best for my computer settings


          • 1 for Adjust for best appearance settings


          • 2 for Adjust for best Performance settings


          • 3 for Custom settings, if the user changed individual
            visual effect settings.


          UserPreferencesMask



          This DWORD item is found at key
          HKEY_CURRENT_USERControl PanelDesktop
          and can have the following values:




          • Let Windows choose what's best for my computer : 9E 1E 07 80 12 00 00 00

          • Adjust for best appearance : 9E 3E 07 80 12 00 00 00

          • Adjust for best Performance : 9E 12 03 80 10 00 00 00

          • Custom : The binary value of 1001ABC0 00D1EF10 00000G11 in the first 3 bytes


          Each of the above letters ABCDEFG has the value 0=off and 1=on, as follows:




          • A : Smooth-scroll list boxes

          • B : Slide open combo boxes

          • C : Fade or slide menus into view

          • D : Show shadows under mouse pointer

          • E : Fade or slide ToolTips into view

          • F : Fade out menu items after clicking

          • G : Show shadows under windows


          References :




          • How to Change Visual Effects Settings in Windows 10

          • How to Change the Visual Effects Settings in Windows 7






          share|improve this answer





















          • I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
            – HAWPIZNOTWORKman
            Nov 22 at 13:32















          up vote
          0
          down vote













          There are two registry changes required for changing the visual effects options,
          followed by logout or restart.



          VisualFXSetting



          This DWORD item is found at key
          HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects
          and its values are:





          • 0 (zero) for Let Windows choose what's best for my computer settings


          • 1 for Adjust for best appearance settings


          • 2 for Adjust for best Performance settings


          • 3 for Custom settings, if the user changed individual
            visual effect settings.


          UserPreferencesMask



          This DWORD item is found at key
          HKEY_CURRENT_USERControl PanelDesktop
          and can have the following values:




          • Let Windows choose what's best for my computer : 9E 1E 07 80 12 00 00 00

          • Adjust for best appearance : 9E 3E 07 80 12 00 00 00

          • Adjust for best Performance : 9E 12 03 80 10 00 00 00

          • Custom : The binary value of 1001ABC0 00D1EF10 00000G11 in the first 3 bytes


          Each of the above letters ABCDEFG has the value 0=off and 1=on, as follows:




          • A : Smooth-scroll list boxes

          • B : Slide open combo boxes

          • C : Fade or slide menus into view

          • D : Show shadows under mouse pointer

          • E : Fade or slide ToolTips into view

          • F : Fade out menu items after clicking

          • G : Show shadows under windows


          References :




          • How to Change Visual Effects Settings in Windows 10

          • How to Change the Visual Effects Settings in Windows 7






          share|improve this answer





















          • I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
            – HAWPIZNOTWORKman
            Nov 22 at 13:32













          up vote
          0
          down vote










          up vote
          0
          down vote









          There are two registry changes required for changing the visual effects options,
          followed by logout or restart.



          VisualFXSetting



          This DWORD item is found at key
          HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects
          and its values are:





          • 0 (zero) for Let Windows choose what's best for my computer settings


          • 1 for Adjust for best appearance settings


          • 2 for Adjust for best Performance settings


          • 3 for Custom settings, if the user changed individual
            visual effect settings.


          UserPreferencesMask



          This DWORD item is found at key
          HKEY_CURRENT_USERControl PanelDesktop
          and can have the following values:




          • Let Windows choose what's best for my computer : 9E 1E 07 80 12 00 00 00

          • Adjust for best appearance : 9E 3E 07 80 12 00 00 00

          • Adjust for best Performance : 9E 12 03 80 10 00 00 00

          • Custom : The binary value of 1001ABC0 00D1EF10 00000G11 in the first 3 bytes


          Each of the above letters ABCDEFG has the value 0=off and 1=on, as follows:




          • A : Smooth-scroll list boxes

          • B : Slide open combo boxes

          • C : Fade or slide menus into view

          • D : Show shadows under mouse pointer

          • E : Fade or slide ToolTips into view

          • F : Fade out menu items after clicking

          • G : Show shadows under windows


          References :




          • How to Change Visual Effects Settings in Windows 10

          • How to Change the Visual Effects Settings in Windows 7






          share|improve this answer












          There are two registry changes required for changing the visual effects options,
          followed by logout or restart.



          VisualFXSetting



          This DWORD item is found at key
          HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects
          and its values are:





          • 0 (zero) for Let Windows choose what's best for my computer settings


          • 1 for Adjust for best appearance settings


          • 2 for Adjust for best Performance settings


          • 3 for Custom settings, if the user changed individual
            visual effect settings.


          UserPreferencesMask



          This DWORD item is found at key
          HKEY_CURRENT_USERControl PanelDesktop
          and can have the following values:




          • Let Windows choose what's best for my computer : 9E 1E 07 80 12 00 00 00

          • Adjust for best appearance : 9E 3E 07 80 12 00 00 00

          • Adjust for best Performance : 9E 12 03 80 10 00 00 00

          • Custom : The binary value of 1001ABC0 00D1EF10 00000G11 in the first 3 bytes


          Each of the above letters ABCDEFG has the value 0=off and 1=on, as follows:




          • A : Smooth-scroll list boxes

          • B : Slide open combo boxes

          • C : Fade or slide menus into view

          • D : Show shadows under mouse pointer

          • E : Fade or slide ToolTips into view

          • F : Fade out menu items after clicking

          • G : Show shadows under windows


          References :




          • How to Change Visual Effects Settings in Windows 10

          • How to Change the Visual Effects Settings in Windows 7







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 20:51









          harrymc

          248k10257549




          248k10257549












          • I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
            – HAWPIZNOTWORKman
            Nov 22 at 13:32


















          • I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
            – HAWPIZNOTWORKman
            Nov 22 at 13:32
















          I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
          – HAWPIZNOTWORKman
          Nov 22 at 13:32




          I was kind of hoping for a way to achieve this without logging off, but well. I guess that's Windows for you/
          – HAWPIZNOTWORKman
          Nov 22 at 13:32


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376503%2ftoggle-windows-visual-effects-using-the-command-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Brian Clough

          Cáceres