Is There a Silent Command-Line Operation to change theme?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 1
    Windows 8 Consumer Preview
       #11

    Hello all:
    I found this command doesn't work under Windows 8 Consumer Preview(Maybe this is a bug of Windows 8). Is there another solution to solve this problem?
      My Computer


  2. Posts : 640
    Windows 7 Ultimate x64
       #12

    @mmppeegg
    Check this thread - Is it possible to create a windows batch file to do this?, not sure if it'll work in Windows 8.
    Last edited by Duzzy; 03 Apr 2012 at 03:48. Reason: Dumb me forgot the link
      My Computer


  3. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #13

    Currently I don't have Win8 CP installed anywhere to test. What is the error message? -WS
      My Computer


  4. Posts : 1
    Windows 7 Ultimate x64
       #14

    Misfortune said:
    Is there a way to change themes from the command-line, without showing the "Personalization" window?

    But this makes the "Personalization" window pop up before changing the theme. Does anyone know a way to perform this operation silently? This is a little like what Sudhir was asking earlier.

    (Sorry for my bad English)

    You can use Microsofts ThemeTool.exe for change the theme silently ...

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. You will be found ThemeTool.exe in this folder. Copy it into an other folder of your choice.

    Usage: ThemeTool.exe [options] [theme]

    Options:
    getcurrentthemename
    getthemestatus
    changetheme

    Sample:
    ThemeTool.exe changetheme C:\Windows\Resources\Themes\YourTheme.theme
      My Computer


  5. Posts : 2
    Windows 7 Professional x64
       #15

    ThemeTool.exe


    @DrInSide
    Thank you so much for your posting!!

    DrInSide said:
    (Sorry for my bad English)

    You can use Microsofts ThemeTool.exe for change the theme silently ...

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. You will be found ThemeTool.exe in this folder. Copy it into an other folder of your choice.

    Usage: ThemeTool.exe [options] [theme]

    Options:
    getcurrentthemename
    getthemestatus
    changetheme

    Sample:
    ThemeTool.exe changetheme C:\Windows\Resources\Themes\YourTheme.theme
    On Windows 7 Professional x64 w/SP1, I could not get the ThemeTool.exe to show up in that folder until I ran the RS_ColorTheme.ps1 with PowerShell, which was in that folder. The PowerShell script ended with an error, but it created the ThemeTool.exe file, which I copied out and works great. Here is the revised steps if you run into that same issue.

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. Right-click RS_ColorTheme.ps1 and choose "Run with PowerShell"
    5. Close PowerShell window
    4. You will find the ThemeTool.exe in this folder. Copy it into an other folder of your choice.
      My Computer


  6. Posts : 1
    Rhone-Alpes
       #16

    jaylweb said:
    @DrInSide
    Thank you so much for your posting!!

    DrInSide said:
    (Sorry for my bad English)

    You can use Microsofts ThemeTool.exe for change the theme silently ...

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. You will be found ThemeTool.exe in this folder. Copy it into an other folder of your choice.

    Usage: ThemeTool.exe [options] [theme]

    Options:
    getcurrentthemename
    getthemestatus
    changetheme

    Sample:
    ThemeTool.exe changetheme C:\Windows\Resources\Themes\YourTheme.theme
    On Windows 7 Professional x64 w/SP1, I could not get the ThemeTool.exe to show up in that folder until I ran the RS_ColorTheme.ps1 with PowerShell, which was in that folder. The PowerShell script ended with an error, but it created the ThemeTool.exe file, which I copied out and works great. Here is the revised steps if you run into that same issue.

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. Right-click RS_ColorTheme.ps1 and choose "Run with PowerShell"
    5. Close PowerShell window
    4. You will find the ThemeTool.exe in this folder. Copy it into an other folder of your choice.
    Hello,

    does the themetool.exe after applying work with all new users? or this tool is just for the current user?

    Thank you
      My Computer


  7. Posts : 6
    Windows 7 Ent. 64bit
       #17

    Does this work for changing the themes on Win 10 Build 10586

    I have to change between day and night themes because after all the great engineering at MS they STILL haven't figured out that people don't like to stare at white during the night! ...and i just want to (quickly) flip the themes for different reading purposes.
      My Computer


  8. Posts : 373
    Win 7 Ultimate 64-bit
       #18

    DrInSide said:
    Misfortune said:
    Is there a way to change themes from the command-line, without showing the "Personalization" window?

    But this makes the "Personalization" window pop up before changing the theme. Does anyone know a way to perform this operation silently? This is a little like what Sudhir was asking earlier.

    (Sorry for my bad English)

    You can use Microsofts ThemeTool.exe for change the theme silently ...

    The tool will be created during troubleshooting of Aero theme:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder thats beginns with "SDIAG_".
    4. You will be found ThemeTool.exe in this folder. Copy it into an other folder of your choice.

    Usage: ThemeTool.exe [options] [theme]

    Options:
    getcurrentthemename
    getthemestatus
    changetheme

    Sample:
    ThemeTool.exe changetheme C:\Windows\Resources\Themes\YourTheme.theme
    EXCELLENT. Just a short note that for me on W7-64, in Step 2., I needed to click on the Aero troubleshooting link... just clicking on the general "Appearance and Personalization" troubleshooting tool did not create the subfolder [mentioned in Step 3.]. Also, if using custom themes they are in a different folder, and finally, custom themes cannot have spaces in the name or the tool won't work.

    So DrInSide Steps Slightly Modified (bolded), if needed:

    1. Go to Control Panel / Troubleshooting
    2. Run "Appearance and Personalization" and then click on the Aero troubleshooting hyperlink and don't close it after finishing.
    3. Search in C:\Windows\Temp a folder that begins with "SDIAG_".
    4. You will find ThemeTool.exe in this folder. Copy it into an other folder of your choice.

    Usage: ThemeTool.exe [options] [theme]

    Options:
    getcurrentthemename
    getthemestatus
    changetheme

    Sample:
    ThemeTool.exe changetheme C:\Windows\Resources\Themes\YourTheme.theme
    (or for custom themes)
    ThemeTool.exe changetheme C:\Users\[UserName]\AppData\Local\Microsoft\Windows\Themes\YourTheme.theme


    Notes:
    1. "AppData" is a hidden folder so you won't see it unless you have Windows configured to show hidden folders
    2. Custom theme names cannot have spaces or they won't execute.
    3. Placing this string in a bat file and then creating different bat files for different themes and executing them with Task Scheduler allows for changing themes on a schedule... such as a different custom theme for each day of the week, or one theme for the work week and another for the weekend, etc. The following steps used with the ThemeTool.exe above will switch themes without opening the Personalization window.

    So assuming you have made custom themes in Windows (like by putting your own pics in the default wallpaper folders [under /Windows/Web/Wallpaper] and then compiling custom themes via Personalization... and saving those themes with unique names that have no spaces in them)... If you want themes to switch on a schedule Task Scheduler can be used in this manner:

    1. Create a .bat file in the custom theme folder, which is located here:

    C:\Users\[UserName]\AppData\Local\Microsoft\Windows\Themes\

    assuming ThemeTool.exe has been copied to this folder, copy/paste the following in a text file, replacing the non-bolded text with your own:

    ThemeTool.exe changetheme C:\Users\[UserName]\AppData\Local\Microsoft\Windows\Themes\YourTheme.theme

    Then save the text file as (e.g.) Weekly.bat.

    To have Task Scheduler run the .bat, type "task" in the search box, then click on Task Scheduler.

    1. In the right pane, click on Create Basic Task.
    2. Enter a name for the task such as WeeklyTheme.
    3. Click Next and configure when you want the bat triggered (daily, weekly, etc)
    4. Click Next and the Action screen will default to "start a program"
    5. Click Next again and for Program/script, click Browse to navigate to the .bat file. When it fills it in, it will fill in the entire path. Copy the entire path EXCEPT the .bat file name, then delete the path and leave only the .bat file name in this field.
    6. On that same screen, paste in the path you just copied, into the "Start in (optional)" field.
    7. Tick the little box that says "Open properties when finished" then click FINISH.
    8. Click the CONDITIONS tab and configure to taste.
    9. Click the SETTINGS tab and configure to taste.
    10. Click the GENERAL tab and conifgure to taste (can set privileges here).

    Once the task is completed it shows up in the main window when ask Scheduler Library is highlighted at left. You can right-click the task to disable, delete, or to choose Properties to tweak its settings.

    Create multiple batch files/themes/tasks for auto-switching the theme on any schedule.
    Last edited by remm; 28 Jan 2016 at 18:55. Reason: Added rest of steps for auto-changing with TS
      My Computer


  9. Posts : 1
    Windows 7 Ultimate x64
       #19

    WindowsStar said:
    Here is a Script I wrote to close the dialog box.... -WS
    Thanks a lot for your script. On my computer it changed the design but couldn't close the dialog. Instead the address bar within the dialog was activated and dropped down, the window stayed open.
    I changed the two sendkey commands to only one:

    Code:
    WshShell.SendKeys "%{F4}"
    That did the job.
      My Computer


  10. Posts : 6
    Windows 7 Pro x64 SP1
       #20

    I have yet to test this extensively but switching the timer from 10000 to 250 still worked for me with the added benefit that the personalization window is perceived as being never opened.

    This is going to vary on people's system and how snappy their OS/Rig is. I'm running a brand new install on powerful rig when testing this. If you're running an old pc or your windows is really old or has tons of viruses slowing it down or is under a heavy load, 250 may be too little time. I wouldn't think it would go over 1000 and probably be around 500 for most. Ideally, if there a way of having the script wait for the personalization window to be active before closing it, it would take the guess work out of this.
    Last edited by thebunnyrules; 21 Mar 2016 at 23:39.
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:29.
Find Us