Shutdown Windows 8 from context menu

This table shows all the keys and string values

Adding the commands

Now that we have created our cascading menu structure, we'll add the commands for each item on the menu. If you have chosen to eliminate some of the items from the SubCommands string above, you'll adjust your steps accordingly.

To begin this portion of the technique, locate and right-click on HKEY_LOCAL_MACHINE key and select the Find command. When you see the Find dialog box, type CommandStore in the text box, make sure that only the Keys check box is selected, and then click the Find next button.

When you arrive at the HKEY_LOCAL_MACHINE\CommandStore key, double click on it to expand its tree. Then, double click on the shell key to expand its tree. Now, pull down the Favorites menu, select the Add to Favorites command, type CommandStore in the text box, and click OK. Now, you can get back to the CommandStore key from the Favorites menu any time you need to while you are creating your cascading menu.

At this point, you are going to add two keys to the shell key for each one of the commands that you want to appear on your menu. The first key will be a name from the SubCommands value in the Shut Down key. Inside this first key, you'll then add two string values: Default and Icon. Below the first key, you'll add a subkey named command. Inside this key, you'll add one string value: Default. The keys that you will create and the string values that you will add are shown in table in Figure H. I know that this may sound confusing at first, but bear with me and it will become clearer as we work through an example.

Credit: Images by Greg Shultz for TechRepublic

About Greg Shultz

Greg Shultz is a freelance Technical Writer. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry.

Free Newsletters, In your Inbox