Jump to content

Recommended Posts

Posted

Hi guys,

I am trying to apply a custom theme as default theme, I tried some ready made answer files but not working for me. So I thought can I do the same with some Autoit script?

If yes please write a script for me which can apply a theme named "simplicity.theme" and then close the personalization window as well.


Posted (edited)

Well, you could just run this reg at first login, then schedule a reboot immediately afterward (or at least a log-off). It won't take effect until the next login.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization]

"ThemeFile"="C:\\Windows\\Resources\\Themes\\SIMPLICITY.theme"

I'm sure it can be done with auto-it, but for that much effort, I'd rather not have to deal with slow moving GUI. I would rather edit the Default Profile (inside install.wim) to make the change permanent and seamless. This way it is already applied before the first login.

Mount\Users\Default\NTUSER.DAT

Edited by MrJinje
Posted

Thanks for your reply, now regarding editing default profile in the install.wim, I don't know how to do that but yes I did try with an answer file but didn't work for me. So I thought Autoit can also do it. Now as you have told me about this registry I would try this as well. But I would also like to know about editing in default

Posted

I would try this from setupcomplete.cmd

REM Load the default profile hive

REG LOAD HKU\Hive C:\Users\Default\NTUSER.DAT

REM Configure the default user profile

REG ADD "HKU\Hive\Software\Policies\Microsoft\Windows\Personalization" /v ThemeFile /t REG_SZ /d "C:\Windows\Resources\Themes\SIMPLICITY.theme" /f

REM Unload the default profile hive

REG UNLOAD HKU\Hive

Expanded theory is discussed here.

This should edit the NTUSER.DAT immediately before the first login, meaning it should apply when the new user is created (during the autounattend)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...