none
Change the windows them with a Windows Batch file

    Question

  • I had no idea what to put this in.....

    I have been tasked with writing a windows batch file to alter the theme to windows classic for all users on a domain.

    It will be preferred if I use a registry change key to achieve this.

    I have identified the root of the registry key: HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\THEMES and then alternate between the folders DefaultVisualStyleOff and DefaultVisualStyleOn.

    And that's as far as I've got. I can use command prompt to look up my IP or browse a directory, but I have never used it for something as complex as.... anything to do with the registry.

    I don't even know how to start!

    What's more, I get bonus points if I can also get the batch file to switch windows visual effects to 'Adjust for Best Performance' and Double Bonus points if I can make the visual effects a custom setting with nothing but 'Smooth Edges of Screen Fonts' ticked.

    Can anyone help?!


    Thursday, April 23, 2015 3:49 PM

Answers

All replies

  • This is the wrong forum for this thread.  You need to post this under an Operating System Forum or a Domain Administrators Forum.

    Please click "Mark As Answer" if my post helped. Tony C.

    • Proposed as answer by Olaf HelperMVP Thursday, April 23, 2015 3:57 PM
    Thursday, April 23, 2015 3:54 PM
  • I posted this in this forum as there are lots of very similar, windows batch / .bat file related posts here. I don't understand why mine doesn't belong...
    Friday, April 24, 2015 10:28 AM
  • > What's more, I get bonus points if I can also get the batch file to
    > switch windows visual effects to 'Adjust for Best Performance' and
    > Double Bonus points if I can make the visual effects a custom setting
    > with nothing but 'Smooth Edges of Screen Fonts' ticked.
     
    So you're essentially asking us to do the work you get awarded for?
     

    Greetings/Grüße, Martin

    Mal ein gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me - coke bottle design refreshment (-:
    Monday, April 27, 2015 8:40 AM
  • 'Bonus Points' is turn of phrase. 

    There is no physical award. This is just I project I've been asked to look at, that I am asking for help with.

    I don't have to do it. In the same way you don't have to help. I did not however expect such ridicule.

    Monday, April 27, 2015 9:23 AM
  • To me, your question sounds like you are preparing for an exam :)
     > I have been tasked with writing a windows batch file to alter the theme
    > to windows classic for all users on a domain.
     
    The theme usually is configured through group policy:
     
    The registry value can be set through other methods, though.
     
    > What's more, I get bonus points if I can also get the batch file to
    > switch windows visual effects to 'Adjust for Best Performance' and
    > Double Bonus points if I can make the visual effects a custom setting
    > with nothing but 'Smooth Edges of Screen Fonts' ticked.
     
    regshot is a great tool to compare "before - after":
     
    You can deploy individual values either through "reg add" or through
    Group Policy Preferences
     
    I'd strongly recommend not to use a batch file for this task.
     

    Greetings/Grüße, Martin

    Mal ein gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me - coke bottle design refreshment (-:
    Monday, April 27, 2015 9:50 AM
  • Hi everybody. I've had a few attempts at this now. Here are my 2 attempts:

    1)

    reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager /v (Default)
    reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager /v (Default) /t REG_SZ /d "%SystemRoot%\resources\Ease of Access Themes\classic.theme" /f
    pause

    2) 

    reg delete HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization /v (Default) /f
    reg add HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization /v (Default) /t REG_SZ /d classic.theme /f
    pause

    What I am doing is working and I'm sure I am on the right track except that the '(Default)' file that has 'no value set' for it's data cannot be deleted. Is there any way that rather then delete it and add a new one, I could just edit the first one, with a batch code to have the data of 'classic.theme'?

    Oh and the reason there are two different files for two different registry trees as there seem to be two areas, either of which could relate to the default them.

    Wednesday, April 29, 2015 10:00 AM
  • > /v (Default) /t REG_SZ /d "%SystemRoot%\resources\Ease of Access
     
    Try "/ve" instead of "/v (Default)"...
     

    Greetings/Grüße, Martin

    Mal ein gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me - coke bottle design refreshment (-:
    Wednesday, April 29, 2015 10:54 AM