Remove IE8 Shortcut From Start menu

xarden

New member
Guru
Local time
1:35 AM
Messages
905
Location
Auckland
Hi guys,

In our Win7 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 Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
OQO 2+
OS
Windows 8 Pro w/MC 32-bit
CPU
Intel Atom 1.86 GHz
Motherboard
OQO 2+
Memory
2 GB
Graphics Card(s)
Intel GMA 500
Sound Card
IDT
Monitor(s) Displays
LCD
Screen Resolution
800 x 480 (portable) 1280 x 1024 (docked)
Hard Drives
64 GB SSD
PSU
9 Ah Battery (portable) or OQO Brick (docked)
Case
Shirt Pocket Sized
Cooling
Tiny Fan
Keyboard
Slide out (portable) DiNovo Edge (docked)
Mouse
Eraser head (portable) Logitech Bluetooth (docked)
Internet Speed
WWAN or 802.11G (portable) T1 (docked)
Browser
IE 10
Other Info
DVD-RW OQO Docking Station
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 Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
OQO 2+
OS
Windows 8 Pro w/MC 32-bit
CPU
Intel Atom 1.86 GHz
Motherboard
OQO 2+
Memory
2 GB
Graphics Card(s)
Intel GMA 500
Sound Card
IDT
Monitor(s) Displays
LCD
Screen Resolution
800 x 480 (portable) 1280 x 1024 (docked)
Hard Drives
64 GB SSD
PSU
9 Ah Battery (portable) or OQO Brick (docked)
Case
Shirt Pocket Sized
Cooling
Tiny Fan
Keyboard
Slide out (portable) DiNovo Edge (docked)
Mouse
Eraser head (portable) Logitech Bluetooth (docked)
Internet Speed
WWAN or 802.11G (portable) T1 (docked)
Browser
IE 10
Other Info
DVD-RW OQO Docking Station
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 win7 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 Computers My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
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 Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
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 Computers My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
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 Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
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 Computer My Computer

OS
7
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.
 

Attachments

My Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
When they had next appeared I'd have just set their Properties To "Hide".
IE8 or The System doesn't give a monkeys if you can see 'em or not. Just so long as they are there!!
 

My Computer My Computer

OS
Windows 7 x64
Thanks for your suggestion, Lasy B.
Whereabouts are these properties set?
 

My Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
Right-click the shortcut, click on Properties at the bottom, on the General tab tick the H.idden box, click Apply, Click OK.
I do it all the time with others whose shortcuts I've moved and they keep recreating them where they want 'em to be.
 

My Computer My Computer

OS
Windows 7 x64
That one, of course.
Code:
attrib +h "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Media Player.lnk"
still produces the access denied when running via script. Doing it the manual way as you described works fine.
 

My Computer My Computer

OS
Windows 7 Enterprise
CPU
Intel Pentium Dual E2200 @2.2GHz
Motherboard
Gigabyte II-G31
Memory
4GB
Graphics Card(s)
Palit GForce 9500GT 1GB
Sound Card
onBoard
Hard Drives
WesternDigital: 250GB + 1TB + 1TB + 2TB
PSU
450W
Case
CoolerMaster CM690
Cooling
Corsair H50
Mouse
Logitech MX518
i'm getting the same access denied lark...

If deleting thru windows explorer, works fine.
But using vb script, comes up with access denied...

ANy ideas?
 

My Computer My Computer

OS
7
Back
Top