Drakelor Posted April 11, 2012 Posted April 11, 2012 Hi all,i am trying to preinstall a Windows 7 with some added themes, but i note that if you go on personalization and select one of this themes you can easyly delete it.i'd like to realize a scenario like defult themes, infact you cannot delete the basic themes.Note: i have a sony vaio computer that after recovery shoes 5 themes installed not removable tooCan somebody show me how do it? thanks in advanceGiovanni.
harshadhparulekar Posted April 11, 2012 Posted April 11, 2012 try using Reverse Integration method to install themes and generate your custom install.wim fileI followed this tutorial for reverse integrationBuilding A Standard Image Of Win7 By Capturing Install.wim by nice_guy75 @rtwincustomize.nethttp://www.rtwincustomize.net/web/index.php?/topic/8343-building-a-standard-image-of-win7-by-capturing-installwim/
Drakelor Posted April 11, 2012 Author Posted April 11, 2012 if you are thinking about normal preinstallation with unattend.xml i did it normally but the theme is deletable. i need to obtain as default themes.u go with mouse on and if u push right button nothing must happen.
pjb0222 Posted April 12, 2012 Posted April 12, 2012 (edited) This requires an elevated command prompt or run logged in as administrator post image.First, copy your theme file to "C:\Windows\Resources\Themes" so it shows up in the list of themes for all users. Alternatively you could put it in the default user profile but keeping up with that becomes bothersome.Next pick which method you want to protect the file. Either will prevent the file from casual deletion as TrustedInstaller is the only ID with deletion permissions and administrators cannot elevate then delete. They will need to modify file permissions first (which is why you do not need to deny deletion).Method one requires you to take ownership of the file prior to modifying permissions. This adds one step to the process but if you are in the GUI you have to close out of the file properties after taking ownership before proceeding. From the command line while it is trivial to add the take ownership into the script people tend to forget steps later on. Simply for ease of management I recommend method two.Method two (recommended) changes this by adding write permissions to administrator. You don't need to remember to take ownership to update permissions.Method oneICACLS "C:\Windows\Resources\Themes\NAME.theme" /setowner "NT SERVICE\TrustedInstaller"ICACLS "C:\Windows\Resources\Themes\NAME.theme" /grant:r "NT SERVICE\TrustedInstaller":F System:RX Administrators:(RX,WO) Users:RX /inheritance:rMethod twoICACLS "C:\Windows\Resources\Themes\NAME.theme" /setowner "NT SERVICE\TrustedInstaller"ICACLS "C:\Windows\Resources\Themes\NAME.theme" /grant:r "NT SERVICE\TrustedInstaller":F System:RX Administrators:(RX,WO,WDAC) Users:RX /inheritance:rI recommend that you leave the administrators group with at least TakeOwnership rights. Otherwise you may find yourself with a file you cannot delete short of reformatting the drive. Edited April 12, 2012 by pjb0222
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now