Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

02 Apr 2012   #11
mmppeegg

Windows 8 Consumer Preview
 
 

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 System SpecsSystem Spec
.
03 Apr 2012   #12
Duzzy

Windows 7 Ultimate x64
 
 

@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.
My System SpecsSystem Spec
10 Apr 2012   #13
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

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

25 Sep 2012   #14
DrInSide

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Misfortune View Post
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 System SpecsSystem Spec
14 Oct 2013   #15
jaylweb

Windows 7 Professional x64
 
 
ThemeTool.exe

@DrInSide
Thank you so much for your posting!!

Quote   Quote: Originally Posted by DrInSide View Post
(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 System SpecsSystem Spec
19 Jan 2015   #16
xrainz

Rhone-Alpes
 
 

Quote   Quote: Originally Posted by jaylweb View Post
@DrInSide
Thank you so much for your posting!!

Quote   Quote: Originally Posted by DrInSide View Post
(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 System SpecsSystem Spec
23 Jan 2016   #17
SP1200

Windows 7 Ent. 64bit
 
 

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 System SpecsSystem Spec
24 Jan 2016   #18
remm

Win 7 Ultimate 64-bit
 
 

Quote   Quote: Originally Posted by DrInSide View Post
Quote   Quote: Originally Posted by Misfortune View Post
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.
My System SpecsSystem Spec
19 Feb 2016   #19
magicwise

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
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 System SpecsSystem Spec
21 Mar 2016   #20
thebunnyrules

Windows 7 Pro x64 SP1
 
 

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.
My System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
I want to change realtek's sound format by using command line
Sound quality is changed by format, so I change the format many times. When I see a movie, then change to 24 48khz or 192. But many musics are 44.1khz so when I play music, then change to 24 44.1khz. But that click-work so bother me. So I want change format by command line. Could you tell...
Sound & Audio
Possible to Change Sound Scheme via Command Line?
Hello All, I've scoured and searched past threads, but have not found the answer(s) I'm looking for. Here's my situation: I'm a full-time AV technician and I frequently deal with multiple (sometimes hundreds) of rental computers that need to be set up for use with presentations. Using the...
Sound & Audio
How to change drive access permission using command line.
Hi, When I look on the Security tab of the drive's properties I see: Group or usernames: Authenticated Users SYSTEM Administrators (MyComputer\Administrators) Users (MyComputer\Users Now if I click on "Advanced" option. I get a page where I can change permissions for the users in the...
General Discussion
Command line to Change the colour depth.
I'm trying to automate changing the color depth.And i want to do it by one line. Kindly let me know the command line to change the color depth for 16bit to 32 bit and vice verse Thanks, Priya
General Discussion
Command Line Utility Change Sound Device
Hi! I am looking for a method for CLI-only changing of the default audio device. (Control Panel-> Hardware and Sound -> Manage Audio Devices) I have already tried various options such as AutoIT, AutoHotKey and while I was able to get it working, this was not the optimal solution. Does...
Sound & Audio
change color depth through command line
Hi, how to change color depth to 32-bit in windows through command or registry
General Discussion


Our Sites

Site Links

About Us

Find 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 21:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App