nice_guy75 Posted April 21, 2010 Share Posted April 21, 2010 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. Link to comment Share on other sites More sharing options...
MrJinje Posted April 21, 2010 Share Posted April 21, 2010 (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 April 21, 2010 by MrJinje Link to comment Share on other sites More sharing options...
nice_guy75 Posted April 21, 2010 Author Share Posted April 21, 2010 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 Link to comment Share on other sites More sharing options...
MrJinje Posted April 21, 2010 Share Posted April 21, 2010 I would try this from setupcomplete.cmdREM Load the default profile hiveREG LOAD HKU\Hive C:\Users\Default\NTUSER.DATREM Configure the default user profileREG ADD "HKU\Hive\Software\Policies\Microsoft\Windows\Personalization" /v ThemeFile /t REG_SZ /d "C:\Windows\Resources\Themes\SIMPLICITY.theme" /fREM Unload the default profile hiveREG UNLOAD HKU\HiveExpanded 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now