How to… get a perfect Windows 7 managed Start Menu and Taskbar

Since we started testing Windows 7 we’d noticed that (amongst other things) Microsoft have it somewhat difficult to get a clean Start Menu and Taskbar set up for users without the detritus MS *think* we want to see on first logon.

We need to provide a standard desktop for training purposes that points users to Office, Internet browser and so on without distractions of the likes of Windows Snipping Tool or XPS Viewer. So we set off on a journey of discovery via Google to see how clever people on the Internet have got around the issue.

Initially we found the Microsoft XML Sysprep customisation method…

http://blogs.technet.com/b/askcore/archive/2010/03/16/how-to-customize-the-windows-7-start-menu-and-taskbar-using-unattend-xml.aspx

Looked OK at first but after testing but didn’t really work as we wanted…

  • leaves  the default junk in the Start Menu
  • only adds 4 “recent” programs rather than pinned ones
  • only allows adding 3 additional icons to the default taskbar items

Not good enough… so we keep going. There must be a better way… and there is!

http://brianleejackson.com/copy-taskbar-icons-windows-7-sysprep-v2

This script gets around the original Sysprep method being a bit lame by placing Pinned items in the taskbar (and also allows you to remove the irritating default icons). We’ll run this on the boot before Sysprepping to remove Media Player (as we want IE and Explorer for now).

Update: a better way to use this script is in conjunction with the Start Menu pin script below to control both via logon script GPOs. The good thing about Brian’s script is that it can unpin the default taskbar icons (other methods can’t do this) If you remove the last section of the code the file won’t try to delete itself.

However I wanted even more control so I could change settings “on the fly” without needing to recapture the profile… can we make it better? Yes we can!

This very nifty set of scripts allows various customisations and works with MDT and suchlike…

http://blogs.technet.com/b/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx

Even better it can be run as a standalone VBS so we can add and remove items line by line via a user logon script. I’ve put the files into NETLOGON so I can easily reference the VBS file from a batch file containing the list of programs I want pinned.

I’ve separated them out for ease of management but you could easily do the whole lot in one go. Just put /taskbar at the end if you want them there (or leave the switch off for the Start Menu). It’s all documented within the VBS file so download it and have a play.

Update: it also appears that there’s a Powershell script that can do the same thing… take your pick…

http://gallery.technet.microsoft.com/b66434f1-4b3f-4a94-8dc3-e406eb30b750

Doing the customisations this way also means we can quickly respond to any requests from users needing additional pinned items as requirements change. Finally all we needed was to clear the default junk from the Start Menu before adding the new pinned items but that’s simple via GPO…

User Policy\Admin Templates\Start Menu and Taskbar – Clear the recent programs list for new users

Combine this with a few extra settings…

User Policy\Admin Templates\Remove user folder link from Start Menu

Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users

Et voila… you have a clean, managed Start Menu and Taskbar that, if used with a mandatory profile will reset at each user logoff and that you can quickly and easily customise without needing to re-create the profile.

Now Microsoft why couldn’t you have just done that in the first place!!!

Another update, this time courtesy of sonofsanta from the Edugeek forums who has provided some testing results when using the auto-pin code as a GPO logon script…

http://www.edugeek.net/forums/windows-7/97902-auto-pin-taskbar.html

  • 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
About these ads

10 Responses to How to… get a perfect Windows 7 managed Start Menu and Taskbar

  1. Pingback: Sorting out the Start Menu and Taskbar

  2. brianleejackson says:

    Thanks for the linkback; I definitely appreciate it. You have a great blog here. Bookmarking it.

  3. brianleejackson says:

    Thanks for the backlink! I spent a lot of time figuring out sysprep and various other things such as the start menu, and it is nice to see people using it. Also, I like your blog! Very similar to mine :) Definitely bookmarking it.

  4. gshaw0 says:

    Hi Brian,

    Just had a bit more of a play and might need to change the method slightly. Was hoping with the script we might be able to keep Media Player removed from the mandatory profile but no such luck by the looks of it :(

    Plan B could be to add the script to run at Logon and remove the delete file portion of it. Only issue I can see is that we use redirected Start Menus as well so not sure if I’ll have to hard code the path to the network location where it’s stored or if there’s a Windows variable I can use…

  5. Pingback: Removing Start Menu Items

  6. Pingback: Auto-Pin to taskbar

  7. Pingback: Pinning Items to Taskbar

  8. Hhowto says:

    Pretty great post. I simply stumbled upon your blog and wanted to mention that I have truly loved browsing your weblog posts. In any case I’ll be subscribing to your feed and I hope you write once more soon!

  9. Pingback: Happy 100th! | gshaw0

  10. Pingback: Pinning items to taskbar globally

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 49 other followers

%d bloggers like this: