Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remove IE8 Shortcut From Start menu


03 Aug 2010   #1

Windows 7 Enterprise
 
 
Remove IE8 Shortcut From Start menu

Hi guys,

In our Windows 7 image we have 2-3 browsers installed. IE8 & FF, and Chrome if requested.
So to keep things tidy, I've got a folder called browsers in the All Users start menu, and dumped the shortcuts into there.

However, after sysprep, IE8 recreates its shortcuts (IE & IE64bit) in the Users start>programs folder.

I dont want it to do this.

There are only 2 local accounts, 'administrator' and 'default'
I've removed the shortcuts from the both of those profiles, so it shouldnt be getting picked up from either of there.

Am I missing something?
How do I prevent it from recreating those shortcuts?
...
On a similar note, but outside this scope, its also happening with our ZenWorks shortcuts. These too have been moved from the above profiles and into a subfolder 'utilities', but after sysprep its back in both the programs and utilities folders.
Not sure if its related to the IE problem, but its the same nonetheless.

Cheers,


My System SpecsSystem Spec
.

04 Aug 2010   #2

Windows 8 Pro w/MC 32-bit
 
 

What is "sysprep"? If you mean after boot up, try start/run msconfig and look at the startup tab. There is info there as to what starts up at boot and where it starts from. You could initially uncheck all items in the "startup" tab just to see if that cures the problem. If it does then try to guess which is the culprit.
My System SpecsSystem Spec
04 Aug 2010   #3

Windows 7 Enterprise
 
 

Sysprep is a tool that strips the OS of any and all hardware ID's, so that you can move that harddrive, or take an image of it, and use it in another machine and windows will still work. Its used for creating a master image of windows, then deploying that to a large number of PC's in a corporate, or educational evironment. We have about 6000 here.

Almost forgot about msconfig...
Nothing in there that was useful to this problem, though.
My System SpecsSystem Spec
.


05 Aug 2010   #4

Windows 8 Pro w/MC 32-bit
 
 

Perhaps Microsoft allows sysprep to be used but only under the condition that certain parts of Windows are preserved. Why not just find and fix the shortcut problem after sysprep (possibly with the help of msconfig) and then add any additional customizations followed by the duplication. (Maybe that's not allowed either but it seems to me most venders manage to customize and then duplicate.)
My System SpecsSystem Spec
05 Aug 2010   #5

Windows 8.1 x64 x3 + Windows 10 Preview
 
 

This could be related to the hidden default user which is referenced when creating a user first run, (Preparing your desktop ... Prompt). check your image for items under "users\default" and "users\default user" in the applicable "appdata\roaming\start" tree area..

This "user" may be useful in setting what any new user will have available should they be created after your initial two

All these areas are hidden by default

Have not worked with this on Windows 7 installs but it should follow the accepted practice.

If not you may need to use a GPO or distributed script to clean-up post install
My System SpecsSystem Spec
05 Aug 2010   #6

Windows 7 Enterprise
 
 

Thanks for the suggestion Nigel,
Plan A:
Went through the default user profile, and moved the all the contents of startmenu into the 'all users' start menu which is buried in c:\programdata.
Did the same for the admin account too, all except the admin tools.
I'l be doing the build and imaging tonight, so will find out on monday if it works.

Plan B:
Script a cleanup tool, and run it during the final phase of setup
Plan C:
Script a cleanup tool, and run it by GPO at machine level (Before login)
Plan D:
Script a cleanup tool, and run it by GPO at a User level (Post login)
Plan E:
Leave it.
My System SpecsSystem Spec
05 Aug 2010   #7

Windows 8.1 x64 x3 + Windows 10 Preview
 
 

Quote   Quote: Originally Posted by xarden View Post
Thanks for the suggestion Nigel,
Plan A:
Went through the default user profile, and moved the all the contents of startmenu into the 'all users' start menu which is buried in c:\programdata.
Did the same for the admin account too, all except the admin tools.
I'l be doing the build and imaging tonight, so will find out on monday if it works.

Plan B:
Script a cleanup tool, and run it during the final phase of setup
Plan C:
Script a cleanup tool, and run it by GPO at machine level (Before login)
Plan D:
Script a cleanup tool, and run it by GPO at a User level (Post login)
Plan E:
Leave it.
I wonder how many project reports actually show "Plan E" as the original choice when it gets to the final draft

Hopefully you'll never get to that stage here - looks like you have a good A - D plan

Good luck
My System SpecsSystem Spec
09 Aug 2010   #8

Windows 7 Enterprise
 
 

Bit of testing done yesterday, looks like they replicate at a user level.
So I'l be going with my option D, to run a script at logon.

Furthermore, another issue I found were the pinned items on the startmenu and taskbar were not appearing.
They were present in the C:\Users\...\QuickLaunch\User Pinned\StartMenu in both User and Default profiles, but they just weren't showing up.
A remedy for this was, in the same cleanup script, to remove the links from those folders, and invoke the verbs 'Pin to Start Men&u' and 'Pin to Tas&kBar' on the target items instead.
The taskbar one doesn't work but start menu does. I don't know why just yet...
My System SpecsSystem Spec
12 Aug 2010   #9

 
 

xarden, Did you manage to get a script working to remove the Internet Explorer (no add-ins) item from being created for every user? If so, any chance of you listing it here?

Cheers,
sharpy
My System SpecsSystem Spec
12 Aug 2010   #10

Windows 7 Enterprise
 
 

Hi Sharpy,
Its the remove shortcut script is basically simple. Its only a .cmd file that runs the del command to delete the items.
SF wont let me upload the .cmd but the code itself is:
Code:
del /F /Q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Media Player.lnk"
del /F /Q "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Internet Explorer.lnk"
del /F /Q "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Internet Explorer (64-bit).lnk"
As you can see, the WMP is in all users, so I get the error 'Access Denied' when running from a domain user.
You will just need to add/replace the file path from the above and point it to the startmenu link.

As for the pin to start menu script, its also rather simple. Full script attached (pin.vbs). Partial script:
Code:
Set objShell = createobject("Shell.application")
Set objFolder = objShell.Namespace("C:\IT\Shortcuts\")

REM INTERNET EXPLORER -------------------------------------------------------------
set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
for Each objVerb in objFolderItem.Verbs
	'wscript.echo objVerb
	if objVerb.name = "Pin to Start Men&u" Then objVerb.DoIt
	if objVerb.name = "Pin to Tas&kBar" then objVerb.DoIt
next
The shortcuts themselves are in the C:\IT\Shortcuts folder.


Attached Files
File Type: vbs pin.vbs (1.4 KB, 168 views)
My System SpecsSystem Spec
Reply

 Remove IE8 Shortcut From Start menu




Thread Tools



Similar help and support threads for2: Remove IE8 Shortcut From Start menu
Thread Forum
hide or remove my computer tab shortcut menu Customization
Pin to Start Menu - Add or Remove from Context Menu in Windows 7 Tutorials
Solved Start menu shortcut editing Customization
Start Menu Shortcut Program Tutorials
Can't rename shortcut in Start Menu General Discussion
Shortcut to start menu? Customization
Add/Remove programs shortcut, context menu Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:00 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33