Use the scripts referenced from my blog page on logon...
How to… get a perfect Windows 7 managed Start Menu and Taskbar « gshaw0
Does anybody know how to setup a perm app link pinned to taskbar.
I'm pinning to the Start Menu with the following VBScript
repeating the middle chunk for as many applications as required. I would imagine that changing "Pin to Start Menu" to "Pin to Taskbar" would work equally as well. This is setup as a login script, one for staff and one for students. The only limitation is it has to be an application you are pinning - not a shortcut - as it relies on verbs, thus I've not found a way of pinning Outlook Web Access to the start menu, nor folders of shortcuts as I'd originally planned on doing.Code: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 WScript.Quit
Also: @gshaw, reading your blog post - there's a GPO to clear the Start Menu for first time users so it isn't filled with the recently used programs that MS think people will want, may be worth putting that on as well to cover all angles.
Looks very similar to what I am doing. I did have an odd problem however where it worked fine for Office apps but when it came to pinning SIMS to the start menu it pinned a new copy and ended up with 10+ copies of the SIMS shortcuts before I stopped it.
Is that the one you're thinking of? It's on the post just above the piccy of the finished Start Menu
The only thing with the scripts is that I'm not sure what happens with roaming profiles if it runs every time, I'm only using it with mandatory profiles at the moment where we want everything reset on each login. For staff we just show them how to do it and let them choose their own apps... maybe there's a way to write some check logic into the scripts so it avoids the multiple items scenario?
Last edited by gshaw; 6th July 2012 at 12:28 PM.
My testing so far with roaming profiles just shows each item on the Start Menu once, no matter how many times a user has logged in. I suspect the fact that verbs are used is what allows this to work - it's not adding a new shortcut file, it is pinning an application to the start menu, and once an item is pinned it can't be pinned again.The only thing with the scripts is that I'm not sure what happens with roaming profiles if it runs every time, I'm only using it with mandatory profiles at the moment where we want everything reset on each login. For staff we just show them how to do it and let them choose their own apps... maybe there's a way to write some check logic into the scripts so it avoids the multiple items scenario?
I appear to have disabled pinning custom items to the Start Menu though - will check after lunch as it would be useful for people to build their own lists, hopefully that doesn't break anything with the script though.
Roaming: I'm pinning *shortcuts* to the task bar and start menu, the same trick but I wrote powershell script for it which writes an HKCU regval for a "first run" check so it does nothing the next time they logon. Unpinning the taskbar defaults is a PITA e.g. Explorer, Media Player, beacause they usually don't get pinned during a first logon until after the script has run.
Last edited by PiqueABoo; 6th July 2012 at 01:14 PM.
Experimentation (after some confusion) reveals:
* Pinning to the Start Menu with the script above a) works b) does not create duplicates on subsequent logins
* If a user unpins any item forced via the script, it is reinstated next time they logon (albeit at the bottom of the list)
* Reinstated pinned items retain the Recently Used jump list
* Users can pin their own items to the Start Menu and these persist across sessions until they unpin them again
* Staring at group policy for too long will make your eyes hurt
gshaw (9th July 2012)
Might have a go at testing some of these methods this weekend. I have been looking for a easy solution which can be changed on the fly and this looks like it could be it.
sonofsanta (9th July 2012)
There are currently 2 users browsing this thread. (1 members and 1 guests)