johnhc Posted October 23, 2012 Share Posted October 23, 2012 (edited) When I first install W7, I have several shortcuts in the Start Menu (eg Paint, Snipping Tool, Calculator, Sticky Notes, etc, etc). If I right click and select 'Remove from this list', they go away - one at a time. I am trying to find a way to get rid of most of them in a script run during install. I found a VBS script to pin/unpin and call it from a batch file to pin items. I tried changing 'Pin to Start Menu' to 'Remove from this list' but this did not work. I found an article via searching that explained why. I also found the files in '%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations' and 'CustomDestinations' that were these jumplists. I removed them all and items in my Explorer icon on the Taskbar disappeared but not the ones in the Start Menu. I have run out of places to look and hope someone can suggest a method to get rid of these items during installation. Thanks and enjoy, John. Edited October 27, 2012 by johnhc Link to comment Share on other sites More sharing options...
Tripredacus Posted October 23, 2012 Share Posted October 23, 2012 Look in Local Security Policy for this:User Policy\Admin Templates\Start Menu and Taskbar - Clear the recent programs list for new users.My test PC has Home Premium on it right now so I can't test it myself. Link to comment Share on other sites More sharing options...
johnhc Posted October 23, 2012 Author Share Posted October 23, 2012 Tripredacus, thanks, I'll give it a try. Enjoy, John. Link to comment Share on other sites More sharing options...
johnhc Posted October 23, 2012 Author Share Posted October 23, 2012 (edited) On a VM running my same system, I created a new user and looked at the Start Menu (had the icons), then enabled "ClearRecentProgForNewUserInStartMenu", created another user and observed that there were no icons - success! I captured a Registry file using RegShot. I attach it so anyone interested can see it. I need to inject this into my install image, but am wondering about the size of it and if I really need all the keys. Anyone else should use with caution. Thanks Tripredacus. Enjoy, John.EDIT: After some time trying to figure out what part of the .reg file is required I am at a loss. It contains HKEY_USERS keys which I assume cannot be injected into the wim file. I have tried stripping them out ad importing the reg file on my VM after disabling the Group Policy. The file imports OK but does not enable the policy. I hope someone will offer some help. Thanks and enjoy, John.EDIT: I am removing the attached .reg file since it contains many unneeded keys. The solution is below. Edited October 27, 2012 by johnhc Link to comment Share on other sites More sharing options...
maxXPsoft Posted October 24, 2012 Share Posted October 24, 2012 You are talking about the recent items then it is simply just add thisNumber of Recent programs to displayNumber of Recent items to display in jump listsI set at 0[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"Start_MinMFU"=dword:00000000"Start_JumpListItems"=dword:00000000 Link to comment Share on other sites More sharing options...
Tripredacus Posted October 24, 2012 Share Posted October 24, 2012 I ran into that information as well, but that pretty much disables the Recent Programs in the Start Menu altogether. I saw the question in this thread on being about how to clear those "default" but not disable the feature. Link to comment Share on other sites More sharing options...
johnhc Posted October 24, 2012 Author Share Posted October 24, 2012 Thanks maxXPsoft, interesting behavior and maybe useful but not really what I wanted. As Tripredacus just replied I was looking to eliminate the initial set of Jumplists from being put in place. On a VM I ran the .reg file (from maxXPsoft) and it wiped all my current set of Jumplists. I then created a new user and Switched User to it and it had all the initial Jumplists, so I ran the .reg file and it cleared it. I created and ran a .reg file that set the two values to 1. This created a Jumplist for 'Getting Started'. Running Paint replaced this one with one for Paint. Removing Paint brought back the 'Getting Started'' one. Truly weird behavior. Can either of you or anyone suggest a way to implement the Group Policy change during W7 installation? Thanks maxXPsoft and Tripredacus for your time. Enjoy, John. Link to comment Share on other sites More sharing options...
Tripredacus Posted October 24, 2012 Share Posted October 24, 2012 I had already tested the "change to zero and then change back to ten" thing but it just hides those items. Would be too simple!Anyways, I think mostly everything in Local Security Policy is actually stored in the registry, but that it is easier to set it using the snap-in. HKEY_USERS should be able to be put in the WIM file but it isn't exact since Windows changes how the registry is used in online vs offline modes. There are two ideas I have just now:1. Boot into a PE and look at the offline registry hives for these settings. Export those reg files and test import them into a mounted registry from the WiM and test.2. This reg file you exported from the running OS, add FirstLogonCommands to merge the .reg file during OOBE. Link to comment Share on other sites More sharing options...
johnhc Posted October 24, 2012 Author Share Posted October 24, 2012 (edited) Tripredacus, thanks but I do not understand what or how to do item 1. I searched the Internet and found that the HKEY_USERS keys are in the winnt folder. I could not find this folder on my running system or in my .wim file. I do know how to boot into WinPE (including under VM). So what do I look for? I guess if I could find the file that contained the HKEY_USERS keys, I could load the hive and export the keys. In the past I have used the unattended file to merge .reg files but they did not run, seemingly for the same reason this will not run on a live machine. I also think FirstLogonCommands time is too late. It seems once these items are generated, they cannot be removed except one at a time via "Remove from this list'. Using maxXPsoft's .reg file just hides the entries but prevents any new ones to be added later. Changing the settings for the values allows the hidden items to return. One solution would be to use the maxXPsoft file and then 'Pin to start menu' all the items I want. It seems strange that we cannot come up with a solution. Thanks and enjoy, John.EDIT: Earlier today I injected one line of maxXPsoft's file into my .wim and installed it on VM. It had no effect on the the Start Menu."Start_JumpListItems"=dword:00000000 Edited October 24, 2012 by johnhc Link to comment Share on other sites More sharing options...
GrofLuigi Posted October 25, 2012 Share Posted October 25, 2012 I don't think you can empty the list before the first login, when it is pre-populated by Microsoft entries.My linkGL Link to comment Share on other sites More sharing options...
Tripredacus Posted October 25, 2012 Share Posted October 25, 2012 Look in here:HKEY_USERS\DEFAULT: C:\Windows\system32\config\default My idea is if you make the change in the Default, it should apply to all users. Otherwise, it looks like the regular HKEY_USERS is stored in NTUSER.DAT. I did a quite look and I'm not sure where that file is, then again I'm not even sure how to use it either. Link to comment Share on other sites More sharing options...
maxXPsoft Posted October 25, 2012 Share Posted October 25, 2012 I don't think you can empty the list before the first login, when it is pre-populated by Microsoft entries.My linkGLI agree. Think I tried this a long time ago and and never could beat it so went to 0 and 0 cause I pin a bunch of my common programs on Start so I have a clear desktopStart_JumpListItems refers to recent items by a single program. Example I set at 2 Link to comment Share on other sites More sharing options...
johnhc Posted October 25, 2012 Author Share Posted October 25, 2012 (edited) Thanks Tripredacus, I found that file last night. The .wim file does not have one of these. The file I use for injecting Registry changes into HKEY_CURRENT_USER is "%Mount%\Users\Default\NTUSER.DAT". That code came from RickSteele. This effort has left the realm of practicality but is turning out to be a great fun learning experience. I will continue for a while (mainly learning something about the Registry and Group Policy) but the goal probably just does not justify the effort. I really appreciate your help.Thanks also maxXPsoft. I may well end up as you and as I mentioned above.Thanks and enjoy, John.EDIT: Here are all the NTUSER.DAT files in the .wim file. There is one in the config folder:C:\Fast\Mount\Users\Administrator\NTUSER.DATC:\Fast\Mount\Users\Default\NTUSER.DATC:\Fast\Mount\Windows\ServiceProfiles\LocalService\NTUSER.DATC:\Fast\Mount\Windows\ServiceProfiles\NetworkService\NTUSER.DATC:\Fast\Mount\Windows\System32\config\systemprofile\ntuser.datI will investigate these on my VM. Edited October 25, 2012 by johnhc Link to comment Share on other sites More sharing options...
maxXPsoft Posted October 25, 2012 Share Posted October 25, 2012 (edited) What he meant to say is MOUNT folder \Windows\system32\config\default << no extension hereThat is default user and inside install.wimYou mount the image then Load the registry like thisreg load HKEY_USERS\WIM_Default "D:\zMountdir\Windows\system32\config\default"reg unload HKEY_USERS\WIM_DefaultDismount Image saving it Edited October 25, 2012 by maxXPsoft Link to comment Share on other sites More sharing options...
johnhc Posted October 25, 2012 Author Share Posted October 25, 2012 maxXPsoft, I am not sure what you are telling me. I think I know how to load the hives from the install.wim as I use a similar process that I got from RickSteele (see above). Thanks and enjoy, John. 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