+ Post New Thread
Results 1 to 14 of 14
Windows 7 Thread, How to pin Application Shortcuts to the start menu? in Technical; We have deployed a few test computers on windows 7 to see how they go. We have one issue that ...
  1. #1
    Gilleen's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    68
    Thank Post
    14
    Thanked 5 Times in 5 Posts
    Rep Power
    22

    Cool How to pin Application Shortcuts to the start menu?

    We have deployed a few test computers on windows 7 to see how they go. We have one issue that I didnt think would be an issue tho.

    On XP we have Internet Explorer and Outlook on the top of the start menus, however in windows 7 these need to be pinned. Anyone know how to pin them via a policy or script? As it appears they are assumed not installed because they are not immidiatly there?

    Any idea please

  2. Thanks to Gilleen from:

    garethedmondson (15th July 2011)

  3. #2

    Join Date
    Nov 2009
    Posts
    45
    Thank Post
    1
    Thanked 9 Times in 5 Posts
    Rep Power
    12
    Hope this helps.., make sure you change Office14 to Office 12 if your using 2007.

    shortcutpin.vbs
    Dim ObjFolder, ObjFolderItem, colVerbs, objverb, objshell


    Set objShell = CreateObject("Shell.Application")

    Set objFolder = objShell.Namespace("C:\Program Files\Internet Explorer")
    Set objFolderItem = objFolder.ParseName("iexplore.exe")
    Set colVerbs = objFolderItem.Verbs
    For Each objVerb in colVerbs
    If Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoIt
    Next

    Set objFolder = objShell.Namespace("C:\Program Files\Microsoft Office\Office14")
    Set objFolderItem = objFolder.ParseName("outlook.exe")
    Set colVerbs = objFolderItem.Verbs
    For Each objVerb in colVerbs
    If Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoIt
    Next

    WScript.Quit

  4. 2 Thanks to victory2009:

    garethedmondson (15th July 2011), Gilleen (28th May 2010)

  5. #3
    Gilleen's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    68
    Thank Post
    14
    Thanked 5 Times in 5 Posts
    Rep Power
    22
    This was perfect, exactly what was needed. Thankyou

    I just find it a shame Microsoft didnt include this into GPO or GPP

  6. #4

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,279
    Thank Post
    972
    Thanked 325 Times in 193 Posts
    Blog Entries
    11
    Rep Power
    165
    Quote Originally Posted by victory2009 View Post
    Hope this helps.., make sure you change Office14 to Office 12 if your using 2007.shortcutpin.vbs
    Hi Victory,Not being a script expert, is it just a case of creating extra blocks for each app I want to pin? I see you have two blocks for two apps.Gareth

  7. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,762
    Thank Post
    354
    Thanked 533 Times in 498 Posts
    Rep Power
    182
    Quote Originally Posted by garethedmondson View Post
    Hi Victory,Not being a script expert, is it just a case of creating extra blocks for each app I want to pin? I see you have two blocks for two apps.Gareth
    Under the way it's done yes. Everything between the Set ObjShell and Quit, is just repeated for each program. If you're doing lots though it'sprobably worth doing it as a function though

    Steve

  8. Thanks to Steve21 from:

    garethedmondson (15th July 2011)

  9. #6

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,279
    Thank Post
    972
    Thanked 325 Times in 193 Posts
    Blog Entries
    11
    Rep Power
    165
    I think the plan is IE, a link to our webmail, Word, Excel, PPoint and Publisher. Maybe SIMS on machines that have Sims.Gareth

  10. #7

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,762
    Thank Post
    354
    Thanked 533 Times in 498 Posts
    Rep Power
    182
    Aye probably just as easy to copy/paste the lines then :P

    The other option you could look into (again depending how you want to do it), Is just set one computer how you like it, then deploy the reg file that stores the settings. Obviously that'd overwrite any custom pins though, so depends if this is fresh rebuild or whatnot

    Steve

  11. #8

    Join Date
    Oct 2005
    Location
    East Midlands
    Posts
    747
    Thank Post
    17
    Thanked 109 Times in 69 Posts
    Rep Power
    38
    Hi There,

    Would this script work if the user is not allowed to pin stuff to the start menu? strange question i know but at our place we are looking to restrict students to not being able to mess about with the task bar and pin icons/programs etc. However we would like to have two items pinned on the user's start menu - the internet explorer and e-mail to provide a consistent start menu (as far the the pinning goes anyway) to students.

    TIA,

    Ash.

    Quote Originally Posted by victory2009 View Post
    Hope this helps.., make sure you change Office14 to Office 12 if your using 2007.

    shortcutpin.vbs

  12. #9

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,762
    Thank Post
    354
    Thanked 533 Times in 498 Posts
    Rep Power
    182
    Quote Originally Posted by spc-rocket View Post
    Hi There,

    Would this script work if the user is not allowed to pin stuff to the start menu? strange question i know but at our place we are looking to restrict students to not being able to mess about with the task bar and pin icons/programs etc. However we would like to have two items pinned on the user's start menu - the internet explorer and e-mail to provide a consistent start menu (as far the the pinning goes anyway) to students.

    TIA,

    Ash.
    Best way to do it would be run as startup/logon style script. Then it can have the elevated permissions needed, if the user doesn't have permission

    Steve

  13. #10

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,279
    Thank Post
    972
    Thanked 325 Times in 193 Posts
    Blog Entries
    11
    Rep Power
    165
    Afternoon,

    I've added this as a logon script for test users but even though I have no errors the script isn't working.

    Is there anything special the users need to have access to for it to work?

    It works for our domain admin so it would suggest that staff and pupils are tied down too much. Can I enable this to pin to the start menu yet not let pupils access the 'Pin to Start Menu' option?

    Gareth
    Last edited by garethedmondson; 18th July 2011 at 03:26 PM.

  14. #11

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,762
    Thank Post
    354
    Thanked 533 Times in 498 Posts
    Rep Power
    182
    Quote Originally Posted by garethedmondson View Post
    Afternoon,

    I've added this as a logon script for test users but even though I have no errors the script isn't working.

    Is there anything special the users need to have access to for it to work?

    It works for our domain admin so it would suggest that staff and pupils are tied down too much. Can I enable this to pin to the start menu yet not let pupils access the 'Pin to Start Menu' option?

    Gareth
    Depends how you're running it, if you're doing it as "the user" they'll need access, if you're running it as you/domain/admin etc, it won't :P

    "However" it would normally error with a access denied if that was the issue.

    Will take a look in a min

    Steve

  15. #12
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    55
    The Microsoft approved way to do this is with the default profile as outlined here Customizing the Default User Profile in Windows 7 (Part 1) Mind you this is a bit of a faff really. I did ensure that office was pinned to the start menu and task bar this way but if you keep the start menu search active, students can learn to use the windows 7 start menu with the 'type in program name' functionality which even worked on a redirected start menu.

  16. #13

    Join Date
    Jun 2010
    Location
    England
    Posts
    735
    Thank Post
    89
    Thanked 52 Times in 46 Posts
    Rep Power
    36
    The script works nicely, so thanks.
    Is there a way to remove pinned items after you've set them to pin using this script?

    Example,
    I pin IE and Word but then decide I no longer want word pinned. Removing the code to pin word from the script has no effect. Is there a way to make this script so it's first step is to delete all pinned items, then it pins the items you have listed in the script?

  17. #14

    Join Date
    Mar 2008
    Location
    UK
    Posts
    54
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    Is there a way to remove pinned items after you've set them to pin using this script?
    Only a guess but I imagine you could use the same code but change the verb it looks for from 'Pin to Start Menu' to 'Unpin from Start Menu' and that will do the reverse.

    Just a thought.



SHARE:
+ Post New Thread

Similar Threads

  1. Start Menu: Pinned Shortcuts for Internet and Outlook
    By burgemaster in forum Windows Vista
    Replies: 6
    Last Post: 1st April 2009, 04:13 PM
  2. Start menu program shortcuts
    By Chuckster in forum Windows
    Replies: 6
    Last Post: 24th September 2008, 07:53 PM
  3. Pin to Start menu
    By detjo in forum How do you do....it?
    Replies: 1
    Last Post: 19th August 2008, 05:12 PM
  4. Adding shortcuts to ALL USERS start menu
    By contink in forum Wireless Networks
    Replies: 15
    Last Post: 16th October 2006, 11:17 AM
  5. Annoying Shortcuts appearing in Start Menu
    By markesmith in forum Wireless Networks
    Replies: 2
    Last Post: 18th September 2006, 08:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •