Chapter 11. Configuring Menus, Shortcuts, and Startup Applications

Shortcuts, menu options, and startup applications are items that most people don't give much thought. After all, menu options are configured when you add and remove programs. Startup applications are configured based on desktop configuration, and you can create shortcuts without a whole lot of thought. In Windows, you can move items around the menu simply by clicking on them and dragging them to a new location. So you may be wondering, why in the world would you need to do this with a script?

Well, have you ever tried to track down a startup application that you didn't want to start anymore? If you have, you know that you have to browse several different folders to determine where the startup application is defined. You then have to delete the reference to the startup application and hope that you didn't miss another reference somewhere else. To make this process easier, you can use a script to examine all startup application definitions and then delete the unnecessary ones. The script takes care of the dirty work for you and can be used on one system or a thousand quite easily. Starting to see how scripts can be useful in this area?

Note

Some of the scripts in this chapter are not fully working examples. The scripts may only highlight the syntax of how the commands could be used in a complete ...

Get Microsoft® PowerShell, VBScript and JScript® Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.